aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-03-30 13:14:12 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-03-30 13:14:12 -0400
commit2ae650c77adac42608eae7e6e251e5ea8fc8fbca (patch)
tree176d36997cc8f0452b87b2ca7fcea11aec9144e9 /src
parent5667b083af700c552a86131acd00f31ab6507536 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RichTextRules.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts
index 76e42f169..cf3d33b49 100644
--- a/src/client/util/RichTextRules.ts
+++ b/src/client/util/RichTextRules.ts
@@ -116,10 +116,10 @@ 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];
+ const fieldParam = match[2]?.replace("…", "...");
const docid = match[3]?.substring(1);
if (!fieldKey && !docid) return state.tr;
docid && DocServer.GetRefField(docid).then(docx => {