mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 04:20:28 +00:00
Merge pull request #6285 from DuchGhast/utf8-validation-fix
Fix utf8 validation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user