From e7b3cddf5571e1ed73174fd07208be3d6d70e6ae Mon Sep 17 00:00:00 2001 From: "Raoul v. R" Date: Fri, 18 Sep 2015 13:29:46 +0200 Subject: [PATCH] Modified absolutePath RegExp. Windows didn't like this regular expression. Added normal slashes to the mixture. --- src/utils/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/path.js b/src/utils/path.js index b5db7c1..4f55ba8 100644 --- a/src/utils/path.js +++ b/src/utils/path.js @@ -1,6 +1,6 @@ // TODO does this all work on windows? -export const absolutePath = /^(?:\/|(?:[A-Za-z]:)?\\)/; +export const absolutePath = /^(?:\/|(?:[A-Za-z]:)?[\\|\/])/; export function isAbsolute ( path ) { return absolutePath.test( path );