Skip to content

Commit 2a3925d

Browse files
committed
correction to escaping of links
1 parent 3a94ef9 commit 2a3925d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommandHandlers/UserCommands.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ public static string EscapeForPlainText(string text)
181181
{
182182
return "(null)";
183183
}
184-
text = text.Replace("discord.gg", "discord\\.gg");
185184
if (NeedsEscapeMatcher.ContainsAnyMatch(text))
186185
{
187186
text = text.Replace("\\", "\\\\").Replace("`", "\\`").Replace("<", "\\<").Replace("@", "\\@").Replace("#", "\\#").Replace("&", "\\&").Replace("*", "\\*").Replace("~", "\\~").Replace("_", "\\_").Replace("|", "\\|").Replace(":", "\\:");
188187
}
188+
text = text.Replace("discord.gg", "discord\\.gg");
189189
return text;
190190
}
191191

0 commit comments

Comments
 (0)