Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow JSON empty exponent as trailing junk #256

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

LeszekSwirski
Copy link
Collaborator

Revert #251, and instead allow an invalid trailing empty exponent to be
treated as junk data in JSON parsing. Expand the test suite to test this
case, including testing the trailing junk.

Revert #251, and instead allow an invalid trailing empty exponent to be
treated as junk data in JSON parsing. Expand the test suite to test this
case, including testing the trailing junk.
@LeszekSwirski
Copy link
Collaborator Author

As I mentioneed in #251, I made a mistake in not considering that fast_float is tolerant of trailing characters. Sorry for the churn 😬

@lemire
Copy link
Member

lemire commented Jul 23, 2024

Will release as another patch.

@lemire lemire merged commit 97036e3 into main Jul 23, 2024
74 checks passed
@LeszekSwirski LeszekSwirski deleted the json-accept-empty-exponent branch July 24, 2024 11:41
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.

2 participants