From 9749b34504bbc05e68c2bb6a207a61fcd6bc7ed6 Mon Sep 17 00:00:00 2001 From: "Raoul v. R" Date: Fri, 18 Sep 2015 13:29:21 +0200 Subject: [PATCH 1/2] Added Appveyor config. --- appveyor.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..b68cf4a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,33 @@ +# http://www.appveyor.com/docs/appveyor-yml + +version: "{build}" + +clone_depth: 10 + +init: + - git config --global core.autocrlf true + +environment: + matrix: + # node.js + - nodejs_version: 0.10 + - nodejs_version: 0.12 + # io.js + - nodejs_version: 1 + +install: + - ps: Install-Product node $env:nodejs_version + - npm install + +build: off + +test_script: + - node --version && npm --version + - npm test + +matrix: + fast_finish: false + +cache: + - C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json # npm cache + - node_modules -> package.json # local npm modules From 989455f7ef61b61d4e0934790d6dd32a281946f6 Mon Sep 17 00:00:00 2001 From: "Raoul v. R" Date: Fri, 18 Sep 2015 13:29:46 +0200 Subject: [PATCH 2/2] 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 );