Skip to content

Commit

Permalink
Merge pull request godotengine#17243 from delftswa2018/trailingDotFix
Browse files Browse the repository at this point in the history
Fix being able to create folder name with ending '.' on Windows
  • Loading branch information
hpvb authored Mar 7, 2018
2 parents 2f3c45f + 96f61b2 commit 900384a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ void FileSystemDock::_make_dir_confirm() {
if (dir_name.length() == 0) {
EditorNode::get_singleton()->show_warning(TTR("No name provided"));
return;
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1) {
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1 || dir_name.ends_with(".")) {
EditorNode::get_singleton()->show_warning(TTR("Provided name contains invalid characters"));
return;
}
Expand Down

0 comments on commit 900384a

Please sign in to comment.