mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:54:57 +00:00
Sanitize Markdowns
This should hopefully fix the markdown issue, it is the same regex used in my other bot (SBot) which uses a discord bridge and works effectively.
This commit is contained in:
parent
67e84fb498
commit
fb6f45a6a5
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public class DiscordBridge {
|
|||
message = message.substring(0, 2000);
|
||||
}
|
||||
|
||||
return message.replaceAll(colors.pattern(), "").replaceAll(pings.pattern(), "@\u200B");
|
||||
return message.replaceAll(colors.pattern(), "").replaceAll(pings.pattern(), "@\u200B").replaceAll("([`_~*])", "\\\\$1");
|
||||
}
|
||||
|
||||
public static void transmitMessage(String message) {
|
||||
|
|
Loading…
Reference in a new issue