mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 00:56:16 +00:00
fix: Remove unnecessary whitespace in sanitizeDiscordText function
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user