From e2f27881301ad73288594eb18d004663ae1a356b Mon Sep 17 00:00:00 2001 From: Mikko Tikkanen Date: Thu, 16 Jan 2014 23:01:13 +0200 Subject: [PATCH] Fix scopePath on Windows On windows the provided slashes are "\" instead of "/" --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index e532ffd..7b62d25 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -19,7 +19,7 @@ module.exports = function(config){ }, parseJSON: function(str) { - var scopePath = path.join("/", scope) + var scopePath = path.join("/", scope).replace(/\\/gm, '/') var rx = RegExp("^" + scopePath, "i") try {