From ce01f676fd087212c0eed0d74ac089fa00222fef Mon Sep 17 00:00:00 2001 From: oskarlh Date: Sun, 20 Sep 2020 18:41:21 +0200 Subject: [PATCH] Fix similar mistake (?) in run.js --- util/run.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/run.js b/util/run.js index c8700f8..24d98f1 100644 --- a/util/run.js +++ b/util/run.js @@ -34,8 +34,8 @@ module.exports = function (command, switches) { var commands = command.match(regexpCommands); if (commands) { commands.forEach(function (c) { - c = c.replace(/\//, path.sep); - c = c.replace(/\\/, path.sep); + c = c.replace(/\//g, path.sep); + c = c.replace(/\\/g, path.sep); c = path.normalize(c); args.push(c); }); @@ -48,8 +48,8 @@ module.exports = function (command, switches) { if (output) { args.pop(); var o = output[0]; - o = o.replace(/\//, path.sep); - o = o.replace(/\\/, path.sep); + o = o.replace(/\//g, path.sep); + o = o.replace(/\\/g, path.sep); o = o.replace(/"/g, ''); o = path.normalize(o); args.push(o);