Skip to content

Commit

Permalink
maybe fix chromaticraft messages leaking formatting codes
Browse files Browse the repository at this point in the history
  • Loading branch information
unilock committed Aug 26, 2024
1 parent 99f3387 commit a679344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cc/unilock/nilcord/util/TextUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.regex.Pattern;

public class TextUtils {
private static final Pattern FORMATTING_CODE_PATTERN = Pattern.compile("(?i)" + '§' + "[0-9A-FK-OR]");
private static final Pattern FORMATTING_CODE_PATTERN = Pattern.compile('§' + "[0-9A-FK-OR]", Pattern.CASE_INSENSITIVE);

public static String parseDiscordMessage(String template, String attachmentChunk, String replyChunk, String usernameChunk, User author, Member member, Message message) {
return template
Expand Down

0 comments on commit a679344

Please sign in to comment.