From a38b7320d2535f4c5e0afbf2e8ac2b19b9377a31 Mon Sep 17 00:00:00 2001 From: Andres Janes Date: Fri, 20 Jan 2017 13:36:57 +0000 Subject: [PATCH] added fix to test that checks if template is local, as the current test was causing issues when using a private repo --- bin/vue-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vue-init b/bin/vue-init index b0d8508b2b..117e2106d6 100755 --- a/bin/vue-init +++ b/bin/vue-init @@ -91,7 +91,7 @@ if (exists(to)) { function run () { // check if template is local - if (/^[./]|(\w:)/.test(template)) { + if (/^\.{1,2}\/|^\w:|^\//.test(template)) { var templatePath = template.charAt(0) === '/' || /^\w:/.test(template) ? template : path.normalize(path.join(process.cwd(), template))