mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Fix matcher bug
This commit is contained in:
parent
f054289f46
commit
93378504ba
@ -67,6 +67,8 @@ public class StringHelper {
|
||||
|
||||
public static String parseColors(String parsed) {
|
||||
Matcher matcher = COLOR_MATCHER.matcher(parsed);
|
||||
if (!matcher.matches())
|
||||
return parsed;
|
||||
String replace = matcher.group(1) != null ? GROUP_1 : GROUP_2;
|
||||
return matcher.replaceAll(replace);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user