adds {escaped_unicode, replace} option that replaces illegal escape sequences with the unicode replacement character u+fffd when encountered
This commit is contained in:
parent
b4eaf15dbe
commit
66f5e0b48a
6 changed files with 56 additions and 9 deletions
7
test/cases/unicode_to_codepoint_noncharacter.test
Normal file
7
test/cases/unicode_to_codepoint_noncharacter.test
Normal file
|
@ -0,0 +1,7 @@
|
|||
{name, "unicode_to_codepoint_noncharacter"}.
|
||||
{jsx, [start_array,
|
||||
{string,"non-character: "},
|
||||
{string,"\\uffff"},
|
||||
end_array,end_json]}.
|
||||
{json, "unicode_to_codepoint_noncharacter.json"}.
|
||||
{jsx_flags, [{escaped_unicode,codepoint}]}.
|
Loading…
Add table
Add a link
Reference in a new issue