From ec95b526155e16dc157ddc59563f0eaaf924aa41 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 27 Oct 2020 21:15:54 +0200 Subject: [PATCH] Fix inline snippets only working once per reply --- src/data/Thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/Thread.js b/src/data/Thread.js index 371a034..4b48683 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -208,7 +208,7 @@ class Thread { let unknownSnippets = new Set(); text = text.replace( - new RegExp(`${config.inlineSnippetStart}(\\s*\\S+?\\s*)${config.inlineSnippetEnd}`, "i"), + new RegExp(`${config.inlineSnippetStart}(\\s*\\S+?\\s*)${config.inlineSnippetEnd}`, "ig"), (orig, trigger) => { trigger = trigger.trim(); const snippet = snippetMap[trigger.toLowerCase()];