mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-15 06:50:12 +08:00
parent
a6231ac593
commit
1ec9e41459
@ -216,7 +216,10 @@ public final class StringUtils {
|
||||
}
|
||||
|
||||
public static String parseColorEscapes(String original) {
|
||||
return original.replaceAll("\u00A7\\d", "");
|
||||
if (original.indexOf('\u00A7') < 0)
|
||||
return original;
|
||||
|
||||
return original.replaceAll("\u00A7[0-9a-gklmnor]", "");
|
||||
}
|
||||
|
||||
public static String parseEscapeSequence(String str) {
|
||||
|
Loading…
Reference in New Issue
Block a user