Fix multiple inline snippets breaking
parent
ddb759f6ae
commit
9a88a6ef89
|
@ -207,7 +207,7 @@ class Thread {
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
new RegExp(`${config.inlineSnippetStart}(.+)${config.inlineSnippetEnd}`, "i"),
|
new RegExp(`${config.inlineSnippetStart}(.+?)${config.inlineSnippetEnd}`, "i"),
|
||||||
(orig, trigger) => {
|
(orig, trigger) => {
|
||||||
const snippet = snippetMap[trigger.toLowerCase()];
|
const snippet = snippetMap[trigger.toLowerCase()];
|
||||||
return snippet != null ? snippet.body : orig;
|
return snippet != null ? snippet.body : orig;
|
||||||
|
|
Loading…
Reference in New Issue