mirror of https://github.com/godotengine/godot
Merge pull request #99059 from MarcusPaulsson/issue_branch_2
Fix String::is_valid_hex_number
This commit is contained in:
commit
c838fe27cd
|
|
@ -4934,6 +4934,10 @@ bool String::is_valid_hex_number(bool p_with_prefix) const {
|
||||||
from += 2;
|
from += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (from == len) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = from; i < len; i++) {
|
for (int i = from; i < len; i++) {
|
||||||
char32_t c = operator[](i);
|
char32_t c = operator[](i);
|
||||||
if (is_hex_digit(c)) {
|
if (is_hex_digit(c)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue