You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -100,7 +100,7 @@ static Vector<String> _get_hierarchy(const String &p_class_name) {
|
||||
}
|
||||
|
||||
if (hierarchy.is_empty()) {
|
||||
if (p_class_name.is_valid_identifier()) {
|
||||
if (p_class_name.is_valid_ascii_identifier()) {
|
||||
hierarchy.push_back(p_class_name);
|
||||
}
|
||||
hierarchy.push_back("Object");
|
||||
|
||||
Reference in New Issue
Block a user