Add broadness check for drive letters
This commit is contained in:
parent
c75810e47e
commit
878bdc845a
4 changed files with 7 additions and 12 deletions
|
@ -326,6 +326,11 @@ export function pathIsTooBroad(path: string): boolean {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Drive letters:
|
||||
if (path.match(/^[a-zA-Z]:$/)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue