We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873b87c commit de3aef3Copy full SHA for de3aef3
src/app/src/utils/tiptap/extensions/binding.ts
@@ -69,7 +69,8 @@ export const Binding = Node.create<BindingAttrs>({
69
addInputRules() {
70
return [
71
new InputRule({
72
- find: /\{\{\s*([^\s|}]+)(?:\s*\|\|\s*([^\s}][^}]*))?\}\}/,
+ // eslint-disable-next-line regexp/no-unused-capturing-group
73
+ find: /\{\{\s*([^\|\s}]+)\s*(?:\|\|\s*([^}]+))?\s*}}$/,
74
handler: ({ state, range, match }) => {
75
const [, name, def] = match as RegExpMatchArray
76
const attrs = sanitize({ value: name, defaultValue: def })
0 commit comments