Skip to content

Commit 658998d

Browse files
Avoid replacing single quote in special flags that may contain single quote
1 parent fc1a5b5 commit 658998d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/wrapper/ExecutionService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import CxAsca from "../asca/CxAsca";
2626

2727
let skipValue = false;
2828
const fileSourceFlag = "--file-source"
29+
const scaResolverParamsFlag = "--sca-resolver-params"
2930

3031
function isJsonString(s: string) {
3132
try {
@@ -53,7 +54,7 @@ function transform(n:string) {
5354
return r;
5455
}
5556
// If the current string is "--file-source", set the flag
56-
if (n === fileSourceFlag) {
57+
if (n === fileSourceFlag || n === "-s" || n === scaResolverParamsFlag) {
5758
skipValue = true;
5859
}
5960

0 commit comments

Comments
 (0)