mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:44:57 +00:00
Properly escape backslash
This commit is contained in:
parent
97c337d5a4
commit
71a100f0e4
1 changed files with 1 additions and 1 deletions
|
@ -215,6 +215,6 @@ public class DiscordBridge {
|
|||
public static String fullySanitizeDiscordMessage(String message)
|
||||
{
|
||||
String partiallySanitized = sanitizeMessage(message);
|
||||
return partiallySanitized.replaceAll("\\\\", "\\\\\\").replaceAll("([`_~*|])", "\\\\$1");
|
||||
return partiallySanitized.replaceAll("([`_~*|\\\\])", "\\\\$1");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue