firefly-compiler 0.4.54 → 0.4.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/NodeSystem.ff
CHANGED
|
@@ -117,10 +117,15 @@ extend self: NodeSystem {
|
|
|
117
117
|
ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
+
if(process.platform === 'win32') {
|
|
121
|
+
arguments_ = arguments_.map(argument =>
|
|
122
|
+
argument.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1")
|
|
123
|
+
);
|
|
124
|
+
command_ = command_.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1");
|
|
125
|
+
}
|
|
120
126
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
121
127
|
cwd: workingDirectory_.value_,
|
|
122
128
|
windowsHide: true,
|
|
123
|
-
windowsVerbatimArguments: true,
|
|
124
129
|
shell: process.platform === 'win32',
|
|
125
130
|
signal: $task.controller.signal,
|
|
126
131
|
killSignal: killSignal_,
|
|
@@ -369,10 +369,15 @@ export async function NodeSystem_execute$(self_, command_, arguments_, standardI
|
|
|
369
369
|
ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
|
+
if(process.platform === 'win32') {
|
|
373
|
+
arguments_ = arguments_.map(argument =>
|
|
374
|
+
argument.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1")
|
|
375
|
+
);
|
|
376
|
+
command_ = command_.replaceAll(/([^A-Za-z0-9/_-])/g, "^$1");
|
|
377
|
+
}
|
|
372
378
|
const newProcess = childProcess.spawn(command_, arguments_, {
|
|
373
379
|
cwd: workingDirectory_.value_,
|
|
374
380
|
windowsHide: true,
|
|
375
|
-
windowsVerbatimArguments: true,
|
|
376
381
|
shell: process.platform === 'win32',
|
|
377
382
|
signal: $task.controller.signal,
|
|
378
383
|
killSignal: killSignal_,
|
package/package.json
CHANGED