Skip to content

Commit d722a79

Browse files
committed
fix
1 parent e75ac0f commit d722a79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const escaped = {
99
'\n': '\\n',
1010
'\r': '\\r',
1111
'\t': '\\t',
12-
'\0': '\\0',
12+
'\0': '\\u0000',
1313
'\u2028': '\\u2028',
1414
'\u2029': '\\u2029'
1515
};

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ const fixtures = {
198198
{
199199
name: 'nul',
200200
value: '\0',
201-
js: '"\\0"',
202-
json: '["\\0"]'
201+
js: '"\\u0000"',
202+
json: '["\\u0000"]'
203203
},
204204
{
205205
name: 'backslash',

0 commit comments

Comments
 (0)