fix: fix a bug for escaping 0xE2 0x80 0xA8 in compactString (#479)

This commit is contained in:
lizixing 2024-05-09 09:28:44 +08:00 committed by GitHub
parent df897aec9d
commit c352e8fb18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -213,8 +213,8 @@ func compactString(dst, src []byte, cursor int64, escape bool) ([]byte, int64, e
dst = append(dst, src[start:cursor]...)
dst = append(dst, `\u202`...)
dst = append(dst, hex[src[cursor+2]&0xF])
cursor += 2
start = cursor + 3
cursor += 2
}
}
switch c {