mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 17:06:15 +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
|
// Sanitize text to prevent Discord mention abuse
|
||||||
function sanitizeDiscordText(text) {
|
function sanitizeDiscordText(text) {
|
||||||
if (!text) return ''
|
if (!text) return ''
|
||||||
|
|
||||||
return String(text)
|
return String(text)
|
||||||
// Remove @everyone and @here mentions
|
// Remove @everyone and @here mentions
|
||||||
.replace(/@(everyone|here)/gi, '@\u200b$1')
|
.replace(/@(everyone|here)/gi, '@\u200b$1')
|
||||||
|
|||||||
Reference in New Issue
Block a user