1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

fixed empty hex bug

formatting
This commit is contained in:
Marcus Paulsson
2024-11-11 09:51:55 +01:00
parent 0f5f3bc954
commit 4db07a19d0

View File

@@ -5150,6 +5150,10 @@ bool String::is_valid_hex_number(bool p_with_prefix) const {
from += 2;
}
if (from == len) {
return false;
}
for (int i = from; i < len; i++) {
char32_t c = operator[](i);
if (is_hex_digit(c)) {