Fix utf8 validation

This commit is contained in:
DuchGhast
2026-02-15 14:49:50 +00:00
committed by GitHub
parent 730e6ce0d4
commit c1df42d991

View File

@@ -314,7 +314,7 @@ valid_string :: proc "contextless" (s: string) -> bool {
return false
} else if size == 3 {
// Okay
} else if d := s[i+3]; b < 0x80 || 0xbf < d {
} else if d := s[i+3]; d < 0x80 || 0xbf < d {
return false
}
i += size