We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2daea4b + e8462bf commit e4e024aCopy full SHA for e4e024a
editor/editor_autoload_settings.cpp
@@ -88,14 +88,9 @@ void EditorAutoloadSettings::_notification(int p_what) {
88
}
89
90
bool EditorAutoloadSettings::_autoload_name_is_valid(const String &p_name, String *r_error) {
91
- if (!p_name.is_valid_ascii_identifier()) {
+ if (!p_name.is_valid_unicode_identifier()) {
92
if (r_error) {
93
- *r_error = TTR("Invalid name.") + " ";
94
- if (p_name.size() > 0 && p_name.left(1).is_numeric()) {
95
- *r_error += TTR("Cannot begin with a digit.");
96
- } else {
97
- *r_error += TTR("Valid characters:") + " a-z, A-Z, 0-9 or _";
98
- }
+ *r_error = TTR("Invalid name.") + " " + TTR("Must be a valid Unicode identifier.");
99
100
101
return false;
0 commit comments