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
commit c838fe27cd
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

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)) {