summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-21 18:35:15 +0200
committerGitHub <noreply@github.com>2017-10-21 18:35:15 +0200
commita4e7985dabb1456f33a2a9f6ae4e9667dc0bc475 (patch)
tree8a4cdeb5e13f2c671e5045063798c3940ca7beed /editor
parent632459a46bcb321560152932bd401f750f98be1a (diff)
parentd9d371fb53ceff0634e84e64178a0dbfa47aa380 (diff)
Merge pull request #12283 from AntiSC2/master
File names for scripts can include '-' [ci skip]
Diffstat (limited to 'editor')
-rw-r--r--editor/script_create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index 089c054b59..00f44ad9b0 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -88,7 +88,7 @@ bool ScriptCreateDialog::_validate(const String &p_string) {
continue;
}
- bool valid_char = (p_string[i] >= '0' && p_string[i] <= '9') || (p_string[i] >= 'a' && p_string[i] <= 'z') || (p_string[i] >= 'A' && p_string[i] <= 'Z') || p_string[i] == '_' || (is_val_path && (p_string[i] == '/' || p_string[i] == '.'));
+ bool valid_char = (p_string[i] >= '0' && p_string[i] <= '9') || (p_string[i] >= 'a' && p_string[i] <= 'z') || (p_string[i] >= 'A' && p_string[i] <= 'Z') || p_string[i] == '_' || p_string[i] == '-' || (is_val_path && (p_string[i] == '/' || p_string[i] == '.'));
if (!valid_char)
return false;