Fixed json strings grammar by blacklisting character control set. Closes #1259

This commit is contained in:
Andrei Betlen 2024-03-08 21:10:53 -05:00
parent 1f3156d4f2
commit d02a9cf16f

View file

@ -1337,7 +1337,7 @@ array ::=
string ::=
"\"" (
[^"\\] |
[^"\\\x7F\x00-\x1F] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\"" ws
@ -1366,7 +1366,7 @@ array ::=
string ::=
"\"" (
[^"\\] |
[^"\\\x7F\x00-\x1F] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\"" ws