input: add support for tildes in folder names

pull/135/head
jsm174 2021-07-13 18:59:09 -04:00
parent 4d6a166cb7
commit bdf31af3ca
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);
}