mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 09:01:39 +08:00
支持支持Hex颜色!(1.16以上版本) 格式 &(#颜色代码) 。
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import cc.carm.plugin.userprefix.util.ColorParser;
|
||||
import org.junit.Test;
|
||||
|
||||
public class ColorParseTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void onTest() {
|
||||
String testString = "&f爱的人永远不爱我,为何付出得到的只有&(#aaaaaa)背叛。";
|
||||
|
||||
System.out.println(ColorParser.parseHexColor(testString));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user