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

Fix the JSON parser sample to allow strings ending in '\'. #115

Merged
merged 1 commit into from
Jul 6, 2020
Merged

Fix the JSON parser sample to allow strings ending in '\'. #115

merged 1 commit into from
Jul 6, 2020

Conversation

fvbommel
Copy link
Contributor

@fvbommel fvbommel commented Jul 5, 2020

I noticed the tokenizer in the JSON sample would fail to parse strings like "foo\\".

This fixes that by not looking specifically for \" but instead ignoring any character preceded by a \ which ensures it won't be allowed to escape the ending quote if it's another \.

@nblumhardt nblumhardt merged commit 5d203c3 into datalust:dev Jul 6, 2020
@nblumhardt
Copy link
Member

Thanks!

@fvbommel fvbommel deleted the fix-json-string-tokenizer branch July 7, 2020 18:43
@nblumhardt nblumhardt mentioned this pull request Sep 6, 2021
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.

None yet

2 participants