Fix regular expression for Windows filesystem root

master
Sven Slootweg 8 years ago
parent b139231241
commit 363a41451a

@ -26,7 +26,7 @@ let defaultCheckers = {
function reachedRoot(candidatePath) {
/* Returns true if we hit the root of the filesystem; like / or C:\ */
return /^(?:\/|a-z:\\)$/i.test(candidatePath);
return /^(?:\/|[a-z]:\\)$/i.test(candidatePath);
}
module.exports = function(options) {

Loading…
Cancel
Save