mirror of https://github.com/goccy/go-json.git
fix: fix a bug for escaping 0xE2 0x80 0xA8 in compactString (#479)
This commit is contained in:
parent
df897aec9d
commit
c352e8fb18
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue