This commit is contained in:
Olivier Gagnon
2019-03-29 11:50:05 -04:00
committed by danielyxie
parent 36499ae9f2
commit cc0e6548ff
3 changed files with 58 additions and 60 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ function saveAndCloseScriptEditor() {
//Checks that the string contains only valid characters for a filename, which are alphanumeric,
// underscores, hyphens, and dots
function checkValidFilename(filename) {
var regex = /^[.a-zA-Z0-9_-]+$/;
var regex = /^[.a-zA-Z0-9\/_-]+$/;
if (filename.match(regex)) {
return true;