Skip to content

Commit 43ab3e3

Browse files
committed
I'm an idiot
1 parent 95d2821 commit 43ab3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function stringify_string(str) {
6363
result += '\\"';
6464
} else if (char in escaped) {
6565
result += escaped[char];
66-
} else if (code >= 0x0000 && code <= 0x001F) {
66+
} else if (code <= 0x001F) {
6767
result += `\\u${code.toString(16).toUpperCase().padStart(4, "0")}`
6868
} else if (code >= 0xd800 && code <= 0xdfff) {
6969
const next = str.charCodeAt(i + 1);

0 commit comments

Comments
 (0)