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()];