We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb328ea commit 9463b0fCopy full SHA for 9463b0f
src/index.ts
@@ -242,7 +242,7 @@ function stringifyString(str: string) {
242
} else if (code >= 0xd800 && code <= 0xdfff) {
243
const next = str.charCodeAt(i + 1);
244
245
- // If this is the beginning of a [low, high] surrogate pair,
+ // If this is the beginning of a [high, low] surrogate pair,
246
// add the next two characters, otherwise escape
247
if (code <= 0xdbff && (next >= 0xdc00 && next <= 0xdfff)) {
248
result += char + str[++i];
0 commit comments