We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f528bed commit 65554a2Copy full SHA for 65554a2
src/main/java/com/laytonsmith/core/Static.java
@@ -1184,7 +1184,8 @@ public static String MCToANSIColors(String mes) {
1184
}
1185
1186
// Convert RGB color codes to ANSI RGB color codes. Note that Windows command prompt ignores this.
1187
- mes = Pattern.compile("(?i)§x(?:§([a-f0-9])){6}").matcher(mes).replaceAll((MatchResult res) -> {
+ mes = Pattern.compile("(?i)§x§([a-f0-9])§([a-f0-9])§([a-f0-9])§([a-f0-9])§([a-f0-9])§([a-f0-9])")
1188
+ .matcher(mes).replaceAll((MatchResult res) -> {
1189
int red = Integer.parseInt(res.group(1) + res.group(2), 16);
1190
int green = Integer.parseInt(res.group(3) + res.group(4), 16);
1191
int blue = Integer.parseInt(res.group(5) + res.group(6), 16);
0 commit comments