diff --git a/package.json b/package.json index 884ffb0..0137ebc 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "Quentin Rossetti ", "František Gič ", "Oskar Larsson Högfeldt ", - "Amin Yahyaabadi " + "Amin Yahyaabadi ", + "sergxerj" ], "license": "MIT", "bugs": { diff --git a/src/utility.ts b/src/utility.ts index f991804..ac69200 100644 --- a/src/utility.ts +++ b/src/utility.ts @@ -80,7 +80,7 @@ export function Run( // Parse and add command (non-switches parameters) to `args`. let regexpCommands = /"((?:\\.|[^"\\])*)"/g; let commands = command.match(regexpCommands) || []; - for (command of commands) { + for (let command of commands) { const arg = command.replace(/(\/|\\)/g, sep); args.push(normalize(arg)); }