mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-02-06 13:15:32 +08:00
Update and test folder regex
This commit is contained in:
@@ -7,7 +7,7 @@ class Input {
|
||||
}
|
||||
|
||||
static isValidFolderName(folderName) {
|
||||
const validFolderName = new RegExp(/^(\.|\.\/)?(\.?\w+\/?)*$/);
|
||||
const validFolderName = new RegExp(/^(\.|\.\/)?(\.?\w+([-_]?\w+)*\/?)*$/);
|
||||
|
||||
return validFolderName.test(folderName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user