allow space in between words of project name (#151)

Co-authored-by: David Finol <davidmfinol@gmail.com>
This commit is contained in:
Webber Takken
2021-11-10 13:30:58 +01:00
committed by GitHub
parent 576ef39bb6
commit 79e50e3e4f
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@ class Input {
}
static isValidFolderName(folderName) {
const validFolderName = new RegExp(/^(\.|\.\/)?(\.?[\w~]+([_-]?[\w~]+)*\/?)*$/);
const validFolderName = new RegExp(/^(\.|\.\/)?(\.?[\w~]+([ _-]?[\w~]+)*\/?)*$/);
return validFolderName.test(folderName);
}