We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012b1de commit d3ce72dCopy full SHA for d3ce72d
src/utility.ts
@@ -86,15 +86,9 @@ export function Run(
86
let args = [command.split(' ')[0]];
87
// Parse and add command (non-switches parameters) to `args`.
88
let regexpCommands = /"((?:\\.|[^"\\])*)"/g;
89
- let commands = command.match(regexpCommands);
90
-
91
- if (commands) {
92
- commands.forEach(function (c) {
93
- c = c.replace(/\//g, sep);
94
- c = c.replace(/\\/g, sep);
95
- c = normalize(c);
96
- args.push(c);
97
- });
+ let commands = command.match(regexpCommands) || [];
+ for (command of commands) {
+ args.push(normalize(command.replace(/(\/|\\)/g, sep)));
98
}
99
100
// Special treatment for the output switch because it is exposed as a
0 commit comments