Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(get-prefix): nudge isRootPath
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 3, 2017
1 parent 078f8d4 commit 1ab31eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ function fileExists (f) {

function isRootPath (p) {
return process.platform === 'win32'
? p.match(/[a-z]:[/\\]?/i)
? p.match(/^[a-z]+:[/\\]?$/i)
: p === '/'
}

0 comments on commit 1ab31eb

Please sign in to comment.