mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
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
|
|
@ -173,7 +173,7 @@ String ShaderPreprocessor::Tokenizer::get_identifier(bool *r_is_cursor, bool p_s
|
|||
}
|
||||
|
||||
String id = vector_to_string(text);
|
||||
if (!id.is_valid_identifier()) {
|
||||
if (!id.is_valid_ascii_identifier()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue