mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Cleanup and move char functions to the char_utils.h
header.
This commit is contained in:
parent
2a3c4f00c8
commit
244db37508
41 changed files with 250 additions and 327 deletions
|
@ -153,7 +153,7 @@ bool ScriptCreateDialog::_validate_class(const String &p_string) {
|
|||
}
|
||||
}
|
||||
|
||||
bool valid_char = (p_string[i] >= '0' && p_string[i] <= '9') || (p_string[i] >= 'a' && p_string[i] <= 'z') || (p_string[i] >= 'A' && p_string[i] <= 'Z') || p_string[i] == '_' || p_string[i] == '.';
|
||||
bool valid_char = is_ascii_identifier_char(p_string[i]) || p_string[i] == '.';
|
||||
|
||||
if (!valid_char) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue