Skip to content

Commit

Permalink
[2.1.0] Fix hex color
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFlicker committed Mar 25, 2024
1 parent 58febe0 commit 0a60199
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ private static int findStop(String content, int searchAfter) {
}

private static String cleanHex(String hex) {
if (hex.startsWith("<") || hex.startsWith("{")) {
return hex.substring(1, hex.length() - 1);
} else if (hex.startsWith("&")) {
if (hex.startsWith("&{")) {
return hex.substring(2, hex.length() - 1);
} else if (hex.startsWith("&#")) {
return hex.substring(1);
} else {
return hex;
Expand Down

0 comments on commit 0a60199

Please sign in to comment.