mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:54:57 +00:00
Properly escape backslash
This commit is contained in:
parent
bb4dd0f931
commit
2afd1e6d19
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