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

Fixes the json exception when using "\\" inside a string; closes #257 #264

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

Mai-Lapyst
Copy link
Contributor

Fixes the exception by switching

if (ch == '\\') {
  escape = true;

to

if (ch == '\\') {
  escape = !escape;

in scan_string().

@pantor pantor merged commit 3741c73 into pantor:master Mar 19, 2023
@pantor
Copy link
Owner

pantor commented Mar 19, 2023

Great, thank you!

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