input: add support for tildes in folder names (#135)
parent
4d6a166cb7
commit
c56b66a41b
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