Skip to content

Commit

Permalink
Fix parsing of surrogate pairs with \u
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Nov 22, 2023
1 parent 56114e8 commit 14cf5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ static int get_escape(parser *p, const char **_src, bool *error, bool number)

if (ch == 'x')
ch = get_hex(&src, UINT_MAX, error);
else if ((ch == 'U') && p->flags.json) {
else if (ch == 'U') {
ch = get_hex(&src, 8, error);
unicode = true;
} else if (ch == 'u') {
Expand Down

0 comments on commit 14cf5da

Please sign in to comment.