fixed empty hex bug
formatting
This commit is contained in:
@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user