From d031ae312a6c40c239e07e5fc37ed2063e990f94 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 27 Jun 2019 07:31:18 +0200 Subject: [PATCH] Fix issue that expressions did not resolve correctly in expression-editor --- packages/editor-ui/src/components/ExpressionInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ExpressionInput.vue b/packages/editor-ui/src/components/ExpressionInput.vue index 0673991804..db66b45c9c 100644 --- a/packages/editor-ui/src/components/ExpressionInput.vue +++ b/packages/editor-ui/src/components/ExpressionInput.vue @@ -253,7 +253,7 @@ export default mixins( // Convert the expression string into a Quill Operations const editorOperations: DeltaOperation[] = []; - currentValue.replace(/\{\{(.*?)\}\}/ig, '*^^%#_@$1*^^%#_@').split('*^^%#_@').forEach((value: string) => { + currentValue.replace(/\{\{(.*?)\}\}/ig, '*%%#_@^$1*%%#_@').split('*%%#_@').forEach((value: string) => { if (!value) { } else if (value.charAt(0) === '^') {