diff --git a/src/data/Thread.js b/src/data/Thread.js index 2db3d0c..5b34a8b 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -207,7 +207,7 @@ class Thread { }, {}); text = text.replace( - new RegExp(`${config.inlineSnippetStart}(.+)${config.inlineSnippetEnd}`, "i"), + new RegExp(`${config.inlineSnippetStart}(.+?)${config.inlineSnippetEnd}`, "i"), (orig, trigger) => { const snippet = snippetMap[trigger.toLowerCase()]; return snippet != null ? snippet.body : orig;