From d4f11ba47c3be368514a9478aeab845b9ed0deff Mon Sep 17 00:00:00 2001 From: Roman Rubachonok Date: Thu, 18 Apr 2019 21:01:21 +0300 Subject: [PATCH] fixed regex checkArtisan function --- Commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/init.js b/Commands/init.js index e6e080d..38e0da0 100644 --- a/Commands/init.js +++ b/Commands/init.js @@ -23,7 +23,7 @@ var askLaravelFolder = function askLaravelFolder() { var checkArtisan = function checkArtisan(cmdRes) { return new Promise(function promiseCheckArtisan(resolve, reject) { - var test = cmdRes.match(/\s*Laravel\s+Framework\s+(version)?\s+(.*)/); + var test = cmdRes.match(/\s*Laravel\s+Framework\s+(version)?\s*(.*)/); if (test) { resolve(test); return;