1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #99059 from MarcusPaulsson/issue_branch_2

Fix String::is_valid_hex_number
This commit is contained in:
Thaddeus Crews
2025-03-06 16:36:17 -06:00

View File

@@ -4934,6 +4934,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)) {