From c346f61fad99a5067c5b4b592cc3119922dff1f2 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 8 Oct 2025 18:03:12 +0500 Subject: [PATCH] Fix inner dsl Signed-off-by: Denis Bykhov --- .../components/attributeEditors/ConstContextPresenter.svelte | 5 ++++- plugins/process/src/dslContext.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/process-resources/src/components/attributeEditors/ConstContextPresenter.svelte b/plugins/process-resources/src/components/attributeEditors/ConstContextPresenter.svelte index 44fcdca593e..847da7ec0ae 100644 --- a/plugins/process-resources/src/components/attributeEditors/ConstContextPresenter.svelte +++ b/plugins/process-resources/src/components/attributeEditors/ConstContextPresenter.svelte @@ -13,6 +13,7 @@ // limitations under the License. --> {#if presenter !== undefined} diff --git a/plugins/process/src/dslContext.ts b/plugins/process/src/dslContext.ts index 830ded02738..c45182f7e62 100644 --- a/plugins/process/src/dslContext.ts +++ b/plugins/process/src/dslContext.ts @@ -89,7 +89,7 @@ function encodeValue (val: any): string { case 'boolean': return val ? 'true' : 'false' case 'string': - return `"${val.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"` + return `"${val}"` case 'object': { const entries = Object.entries(val).map(([k, v]) => `${k}=${encodeValue(v)}`) return `{${entries.join(',')}}` @@ -375,7 +375,7 @@ function decodeValue (s: string): any { return Number.isNaN(n) ? str : n } if (str.startsWith('"') && str.endsWith('"')) { - return str.slice(1, -1).replace(/\\"/g, '"') + return str.slice(1, -1) } if (str.startsWith('[') && str.endsWith(']')) { const inner = str.slice(1, -1).trim()