From 1ab31eb3a31851d4cb03d8fa590259155688ce2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 2 Jun 2017 20:54:00 -0700 Subject: [PATCH] fix(get-prefix): nudge isRootPath --- get-prefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-prefix.js b/get-prefix.js index 26bee88..ef0e937 100644 --- a/get-prefix.js +++ b/get-prefix.js @@ -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 === '/' }