From 72bd291efb35385c2547af6624b3158de06bd43e Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Fri, 2 Aug 2019 16:53:02 +0200 Subject: [PATCH] :bug: Fix bug that it does always move to beginning of line after entering first character in expression input --- 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 1bff6aace8..9a0f891389 100644 --- a/packages/editor-ui/src/components/ExpressionInput.vue +++ b/packages/editor-ui/src/components/ExpressionInput.vue @@ -112,7 +112,7 @@ export default mixins( AutoFormat.DEFAULTS = { expression: { - trigger: /[\w\s]/, + trigger: /\B[\w\s]/, find: /\{\{[^\s,;:!?}]+\}\}/i, format: 'variable', },