fix: replace <:|>

This commit is contained in:
Jozef Steinhübl 2023-12-30 17:26:38 +01:00
parent 1568580431
commit 7dd7db944e
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7

View file

@ -32,5 +32,5 @@ export function isBunOnlyLikeMessage(content?: string) {
if (!content) return false; if (!content) return false;
if (content === "bun") return true; if (content === "bun") return true;
return BUN_EMOJIS.some((emoji) => content.replace(/[<>]/g, "") == emoji); return BUN_EMOJIS.some((emoji) => content.replace(/<:|>/g, "") == emoji);
} }