Fixes bug when the string has emojis and is trying to check if it is a hex or not

This commit is contained in:
Vitor Pamplona
2025-07-02 15:12:48 -04:00
parent 11d9af41bd
commit e499410ddb
@@ -43,6 +43,7 @@ object Hex {
try {
for (c in hex.indices) {
if (c < 0 || c > 255) return false
if (hexToByte[hex[c].code] < 0) return false
}
} catch (e: IllegalArgumentException) {