mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-16 06:05:07 +08:00
Make full quality gates pass across repository
This commit is contained in:
@@ -27,7 +27,7 @@ func repairInvalidJSONBackslashes(s string) string {
|
||||
isHex := true
|
||||
for j := 1; j <= 4; j++ {
|
||||
r := runes[i+1+j]
|
||||
if !((r >= '0' && r <= '9') || (r >= 'a' && r <= 'f') || (r >= 'A' && r <= 'F')) {
|
||||
if (r < '0' || r > '9') && (r < 'a' || r > 'f') && (r < 'A' || r > 'F') {
|
||||
isHex = false
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user