From 6b11add93963f1ddf1354cb217e997112327bab9 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 17 Sep 2020 15:46:59 +0100 Subject: [PATCH] Replace string.replaceAll due to bad support --- .../userInterface/MustacheStringViewer.svelte | 12 ++++++++++++ .../WorkflowBuilder/flowchart/FlowItem.svelte | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 packages/builder/src/components/userInterface/MustacheStringViewer.svelte diff --git a/packages/builder/src/components/userInterface/MustacheStringViewer.svelte b/packages/builder/src/components/userInterface/MustacheStringViewer.svelte new file mode 100644 index 0000000000..78f65dda0b --- /dev/null +++ b/packages/builder/src/components/userInterface/MustacheStringViewer.svelte @@ -0,0 +1,12 @@ + + +
+ +
+ + diff --git a/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte b/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte index ceed34924f..01b0792aea 100644 --- a/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte +++ b/packages/builder/src/components/workflow/WorkflowBuilder/flowchart/FlowItem.svelte @@ -26,9 +26,7 @@ } $: inputs = enrichInputs(block.inputs) - $: tagline = block.tagline - .replaceAll("{{", "{{") - .replaceAll("}}", "}}") + $: tagline = block.tagline.replace(/{{/g, "{{").replace(/}}/, "}}")