diff --git a/src/main/wrapper/ExecutionService.ts b/src/main/wrapper/ExecutionService.ts index 2610e735..26d3592d 100644 --- a/src/main/wrapper/ExecutionService.ts +++ b/src/main/wrapper/ExecutionService.ts @@ -26,6 +26,7 @@ import CxAsca from "../asca/CxAsca"; let skipValue = false; const fileSourceFlag = "--file-source" +const scaResolverParamsFlag = "--sca-resolver-params" function isJsonString(s: string) { try { @@ -53,12 +54,12 @@ function transform(n:string) { return r; } // If the current string is "--file-source", set the flag - if (n === fileSourceFlag) { + if (n === fileSourceFlag || n === "-s" || n === scaResolverParamsFlag) { skipValue = true; } let r = ""; - if(n) r = n.replace(/"/g, "").replace("/[, ]/g",","); + if(n) r = n.replace(/"'/g, "").replace("/[, ]/g",","); return r; }