summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-08-23 14:30:51 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-08-27 11:34:08 +0800
commit8bf4ecc026029eb7b16645c11930b73cf642dbfa (patch)
treef681d221372ac3ae1558941b016b4af47ff7ebe3 /editor/project_settings_editor.cpp
parentdb76de5de8a415b29be4c7dd84b99bd0fe260822 (diff)
downloadredot-engine-8bf4ecc026029eb7b16645c11930b73cf642dbfa.tar.gz
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()`
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index bdf4e41c5f..373895b653 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -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;
}
}