Skip to content

parser: stop number scan at a second decimal point - #125

Open
team-humaki wants to merge 1 commit into
valyala:masterfrom
team-humaki:parser-extra-dot-number
Open

team-humaki wants to merge 1 commit into
valyala:masterfrom
team-humaki:parser-extra-dot-number

Conversation

@team-humaki

Copy link
Copy Markdown

Fixes #119

parseRawNumber treated any mix of digits, ., e, +, and - as one number, so {"version":1.0.1} parsed while Validate rejected it.

Scan at most one . and one exponent so Parse and Validate agree on extra-dot numbers. go test ./... passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent behavior between Validate() and Parse()

1 participant