Merge pull request #1827 from seltonmt012/fix/locale-string-invalid-utf8

fix(es_extended/shared): return false instead of raising on invalid utf8
This commit is contained in:
_Not_
2026-08-14 19:47:23 -05:00
committed by GitHub
+4
View File
@@ -186,6 +186,10 @@ function ESX.IsValidLocaleString(str, allowDigits)
return false
end
if not utf8.len(str) then
return false
end
local locale = string.lower(Config.Locale)
local defaultRanges ={