Fix hex code colors not supporting uppercase characters.
Bump XSeries library to 8.6.1. Bump version to 2.8.1.
This commit is contained in:
1 parent
21950514a8
commit
2e6d4b02c3
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -82,7 +82,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.cryptomorin</groupId>
|
||||
<artifactId>XSeries</artifactId>
|
||||
<version>7.9.1.1</version>
|
||||
<version>8.6.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.MilkBowl</groupId>
|
||||
|
||||
@@ -4,7 +4,7 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class ChatColorUtil {
|
||||
private static final Pattern HEX_PATTERN = Pattern.compile("&#(\\w{5}[0-9a-f])");
|
||||
private static final Pattern HEX_PATTERN = Pattern.compile("&#(\\w{5}[0-9a-f])", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
public static String translate(String textToTranslate) {
|
||||
if (VersionUtil.isHexAvailable()) {
|
||||
|
||||
Reference in new issue
Block a user