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
|
|
@ -221,7 +221,7 @@ void ProjectSettingsEditor::_update_property_box() {
|
|||
|
||||
const Vector<String> names = name.split("/");
|
||||
for (int i = 0; i < names.size(); i++) {
|
||||
if (!names[i].is_valid_identifier()) {
|
||||
if (!names[i].is_valid_ascii_identifier()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue