2020-07-30 21:25:24 +00:00
|
|
|
package xyz.etztech;
|
|
|
|
|
|
|
|
public class Javacord {
|
|
|
|
|
|
|
|
public static String escapeFormat(String input) {
|
|
|
|
return input
|
|
|
|
.replaceAll("_", "\\\\\\\\_")
|
|
|
|
.replaceAll("\\*", "\\\\\\\\*")
|
2020-07-30 22:00:54 +00:00
|
|
|
.replaceAll("~", "\\\\\\\\~")
|
|
|
|
.replaceAll("\\|", "\\\\\\\\|");
|
2020-07-30 21:25:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static String escapeQuote(String input) {
|
|
|
|
return input.replaceAll("\"", "\\\\\"");
|
|
|
|
}
|
|
|
|
}
|