diff --git a/src/main.ts b/src/main.ts index 4545563..71e0111 100644 --- a/src/main.ts +++ b/src/main.ts @@ -57,6 +57,7 @@ async function process_text(text: string): Promise { for (const emote of matches.reverse()) { const [match, code] = emote; const index = emote.index ?? 0; + if (!(code in emotes)) continue; text = text.substring(0, index) +