Fix issue that expressions did not resolve correctly in

expression-editor
This commit is contained in:
Jan Oberhauser 2019-06-27 07:31:18 +02:00
parent d6db85caf9
commit d031ae312a

View file

@ -253,7 +253,7 @@ export default mixins(
// Convert the expression string into a Quill Operations // Convert the expression string into a Quill Operations
const editorOperations: DeltaOperation[] = []; const editorOperations: DeltaOperation[] = [];
currentValue.replace(/\{\{(.*?)\}\}/ig, '*^^%#_@$1*^^%#_@').split('*^^%#_@').forEach((value: string) => { currentValue.replace(/\{\{(.*?)\}\}/ig, '*%%#_@^$1*%%#_@').split('*%%#_@').forEach((value: string) => {
if (!value) { if (!value) {
} else if (value.charAt(0) === '^') { } else if (value.charAt(0) === '^') {