File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ export function Run(
88
88
let regexpCommands = / " ( (?: \\ .| [ ^ " \\ ] ) * ) " / g;
89
89
let commands = command . match ( regexpCommands ) || [ ] ;
90
90
for ( command of commands ) {
91
- args . push ( normalize ( command . replace ( / ( \/ | \\ ) / g, sep ) ) ) ;
91
+ const arg = command . replace ( / ( \/ | \\ ) / g, sep ) ;
92
+ args . push ( normalize ( arg ) ) ;
92
93
}
93
94
94
95
// Special treatment for the output switch because it is exposed as a
@@ -98,12 +99,8 @@ export function Run(
98
99
99
100
if ( output ) {
100
101
args . pop ( ) ;
101
- args . push (
102
- normalize ( output [ 0 ] . replace (
103
- / ( \/ | \\ | " ) / g,
104
- ( match ) => match === '"' ? '' : sep )
105
- )
106
- ) ;
102
+ const arg = output [ 0 ] . replace ( / ( \/ | \\ | " ) / g, ( match ) => match === '"' ? '' : sep ) ;
103
+ args . push ( normalize ( arg ) ) ;
107
104
}
108
105
109
106
if ( switches . files ) {
You can’t perform that action at this time.
0 commit comments