mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix(validator): exclude the correct GBK trail byte (#372)
This commit is contained in:
1 parent
65806afc7d
commit
129da3f2ed
2 files changed
+4
-1
No files matched your search
@@ -505,7 +505,7 @@ func IsGBK(data []byte) bool {
|
||||
i+1 < len(data) &&
|
||||
data[i+1] >= 0x40 &&
|
||||
data[i+1] <= 0xfe &&
|
||||
data[i+1] != 0xf7 {
|
||||
data[i+1] != 0x7f {
|
||||
i += 2
|
||||
continue
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user