diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-30 14:12:30 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-30 14:12:30 -0400 |
commit | 5f0e4bbbc5ea4013c2d2bf0538ff08c204e022bd (patch) | |
tree | d38abfd821d34aa68cfd07860ed283be3df3a484 | |
parent | 2ae650c77adac42608eae7e6e251e5ea8fc8fbca (diff) |
argh!! typo in regex rich text rule
-rw-r--r-- | src/client/util/RichTextRules.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index cf3d33b49..0b6fdff42 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -116,7 +116,7 @@ export class RichTextRules { }), // create an inline view of a document {{ <layoutKey> : <Doc> }} // {{:Doc}} => show default view of document {{<layout>}} => show layout for this doc {{<layout> : Doc}} => show layout for another doc new InputRule( - new RegExp(/\{\{([a-zA-Z_ \-0-9]*)(\(([a-zA-Z0-9…._\-]*)\))?(:[a-zA-Z_ \-0-9]+)?\}\}$/), + new RegExp(/\{\{([a-zA-Z_ \-0-9]*)(\([a-zA-Z0-9…._\-]*\))?(:[a-zA-Z_ \-0-9]+)?\}\}$/), (state, match, start, end) => { const fieldKey = match[1]; const fieldParam = match[2]?.replace("…", "..."); |