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
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)
|
public static String fullySanitizeDiscordMessage(String message)
|
||||||
{
|
{
|
||||||
String partiallySanitized = sanitizeMessage(message);
|
String partiallySanitized = sanitizeMessage(message);
|
||||||
return partiallySanitized.replaceAll("\\\\", "\\\\\\").replaceAll("([`_~*|])", "\\\\$1");
|
return partiallySanitized.replaceAll("([`_~*|\\\\])", "\\\\$1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue