Skip to content

Commit

Permalink
Update TextUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 29, 2024
1 parent 6a59b86 commit 961b1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/qscbm/slimefun4/utils/TextUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.regex.Pattern;

public class TextUtils {
private static final Pattern STRIP_COLOR_PATTERN = Pattern.compile("(?i)" + '§' + "[0-9A-FK-ORX]");
private static final Pattern STRIP_COLOR_PATTERN = Pattern.compile("(?i)[§&][0-9A-FK-ORX]");

public static String toPlainText(Component component) {
return PlainTextComponentSerializer.plainText().serialize(component);
Expand Down

0 comments on commit 961b1e2

Please sign in to comment.