Skip to content

Commit a7e3ef7

Browse files
Ignore flag where single quote can appear within the value
1 parent fc1a5b5 commit a7e3ef7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/wrapper/ExecutionService.ts

Lines changed: 5 additions & 2 deletions
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,12 +54,14 @@ 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) {
58+
skipValue = true;
59+
} {
5760
skipValue = true;
5861
}
5962

6063
let r = "";
61-
if(n) r = n.replace(/"/g, "").replace("/[, ]/g",",");
64+
if(n) r = n.replace(/"'/g, "").replace("/[, ]/g",",");
6265
return r;
6366
}
6467

0 commit comments

Comments
 (0)