Skip to content

Commit

Permalink
Santize @ for discord (#22)
Browse files Browse the repository at this point in the history
* Santize @ for discord

* Replace @ with (at)

* Oopsie poopsies
  • Loading branch information
pepbutler authored Dec 13, 2023
1 parent 2e69828 commit 83f19ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public static String getChatColor(String color) {
}

public static String sanitise(String message) {
return ChatColor.stripColor(MarkdownSanitizer.sanitize(message));
return ChatColor.stripColor(MarkdownSanitizer.sanitize(message).replace("@", "(at)"));
}
}

0 comments on commit 83f19ee

Please sign in to comment.