Skip to content

Commit 9463b0f

Browse files
committed
up is down and black is white
1 parent bb328ea commit 9463b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function stringifyString(str: string) {
242242
} else if (code >= 0xd800 && code <= 0xdfff) {
243243
const next = str.charCodeAt(i + 1);
244244

245-
// If this is the beginning of a [low, high] surrogate pair,
245+
// If this is the beginning of a [high, low] surrogate pair,
246246
// add the next two characters, otherwise escape
247247
if (code <= 0xdbff && (next >= 0xdc00 && next <= 0xdfff)) {
248248
result += char + str[++i];

0 commit comments

Comments
 (0)