From 658998d188a654917879ac8165d2dc8ca7fe3ba1 Mon Sep 17 00:00:00 2001 From: Umesh Waghode <77615542+cx-umesh-waghode@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:08:48 +0530 Subject: [PATCH 1/2] Avoid replacing single quote in special flags that may contain single quote --- src/main/wrapper/ExecutionService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/wrapper/ExecutionService.ts b/src/main/wrapper/ExecutionService.ts index 2610e735..1b750e0f 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,7 +54,7 @@ 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; } From 0a1fdf051d15ac9959ef13abe2d22f7cb4c5de4f Mon Sep 17 00:00:00 2001 From: Umesh Waghode <77615542+cx-umesh-waghode@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:31:27 +0530 Subject: [PATCH 2/2] Forgot to revert single quote removal from generic code path. --- src/main/wrapper/ExecutionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/wrapper/ExecutionService.ts b/src/main/wrapper/ExecutionService.ts index 1b750e0f..26d3592d 100644 --- a/src/main/wrapper/ExecutionService.ts +++ b/src/main/wrapper/ExecutionService.ts @@ -59,7 +59,7 @@ function transform(n:string) { } let r = ""; - if(n) r = n.replace(/"/g, "").replace("/[, ]/g",","); + if(n) r = n.replace(/"'/g, "").replace("/[, ]/g",","); return r; }