input: add support for tildes in folder names
parent
4d6a166cb7
commit
bdf31af3ca
File diff suppressed because one or more lines are too long
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue