Add broadness check for drive letters

This commit is contained in:
mtkennerly 2020-09-11 12:26:34 -04:00
parent c75810e47e
commit 878bdc845a
4 changed files with 7 additions and 12 deletions

View file

@ -326,6 +326,11 @@ export function pathIsTooBroad(path: string): boolean {
return true;
}
// Drive letters:
if (path.match(/^[a-zA-Z]:$/)) {
return true;
}
return false;
}