Skip to content

Commit e636065

Browse files
committed
(fix) hexColored api compatibility
1 parent 707e3d7 commit e636065

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/cat/nyaa/nyaacore/utils/HexColorUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public static String extractColorCode(String text) {
2929
return convertToLegacyColorCode(textBuilder.toString());
3030
}
3131

32+
// for old api compatibility
33+
public static String hexColored(String text){
34+
return extractColorCode(text);
35+
}
36+
3237
/**
3338
* Expand color code looks like <code>&amp;#RRGGBB</code> to <code>&amp;x&amp;R&amp;R&amp;G&amp;G&amp;B&amp;B</code>.
3439
*

0 commit comments

Comments
 (0)