Skip to content

Commit

Permalink
fix: fix a bug for escaping 0xE2 0x80 0xA8 in compactString (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizixing committed May 9, 2024
1 parent df897ae commit c352e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/encoder/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c352e8f

Please sign in to comment.