Skip to content

Commit 7b7ec1b

Browse files
cesco69BridgeAR
authored andcommitted
Update index.js
same as BridgeAR/fast-json-escape#6
1 parent 46f2449 commit 7b7ec1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.configure = configure
2020
module.exports = stringify
2121

2222
// eslint-disable-next-line no-control-regex
23-
const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/
23+
const strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/
2424

2525
// Escape C0 control characters, double quotes, the backslash and every code
2626
// unit with a numeric value in the inclusive range 0xD800 to 0xDFFF.

0 commit comments

Comments
 (0)