fix: Remove unnecessary whitespace in sanitizeDiscordText function

This commit is contained in:
2026-01-02 16:20:47 +01:00
parent 56d8e431bd
commit 73c9643416

View File

@@ -25,7 +25,7 @@ function isRateLimited(ip) {
// Sanitize text to prevent Discord mention abuse
function sanitizeDiscordText(text) {
if (!text) return ''
return String(text)
// Remove @everyone and @here mentions
.replace(/@(everyone|here)/gi, '@\u200b$1')