Add String.is_valid_unicode_identifier()
- Adds `is_valid_unicode_identifier()` - Adds `is_valid_ascii_identifier()` - Deprecates `is_valid_identifier()` - Renames `validate_identifier()` to `validate_ascii_identifier()`
This commit is contained in:
parent
db76de5de8
commit
8bf4ecc026
22 changed files with 132 additions and 60 deletions
|
|
@ -349,7 +349,7 @@ String ShaderGlobalsEditor::_check_new_variable_name(const String &p_variable_na
|
|||
return TTR("Name cannot be empty.");
|
||||
}
|
||||
|
||||
if (!p_variable_name.is_valid_identifier()) {
|
||||
if (!p_variable_name.is_valid_ascii_identifier()) {
|
||||
return TTR("Name must be a valid identifier.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue