You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -112,7 +112,7 @@ Error RDShaderFile::parse_versions_from_text(const String &p_text, const String
|
||||
}
|
||||
Vector<String> slices = l.get_slice(";", 0).split("=");
|
||||
String version = slices[0].strip_edges();
|
||||
if (!version.is_valid_identifier()) {
|
||||
if (!version.is_valid_ascii_identifier()) {
|
||||
base_error = "Version names must be valid identifiers, found '" + version + "' instead.";
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user