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()