Skip to content

Commit

Permalink
Update ChargeUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Nov 18, 2024
1 parent 22b7315 commit 279eb64
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
*/
public final class ChargeUtils {
private static final String LORE_PREFIX = "§8\u21E8 §e\u26A1 §7";
private static final String NUMBER_PREFIX = "([+-]?\\d+([.]\\d+)?([Ee][+-]?\\d+)?)";
private static final String NUMBER_REGEX = "([+-]?\\d+([.]\\d+)?([Ee][+-]?\\d+)?)";
private static final Pattern REGEX =
Pattern.compile("(§c§o)?" + LORE_PREFIX + NUMBER_PREFIX + " / " + NUMBER_PREFIX + " J", Pattern.CASE_INSENSITIVE);
Pattern.compile("(§c§o)?" + LORE_PREFIX + NUMBER_REGEX + " / " + NUMBER_REGEX + " J", Pattern.CASE_INSENSITIVE);


private static final Pattern REGEX_NEW =
Pattern.compile(NUMBER_PREFIX + " / " + NUMBER_PREFIX + " J");
Pattern.compile(NUMBER_REGEX + " / " + NUMBER_REGEX + " J");

private ChargeUtils() {
}
Expand Down

0 comments on commit 279eb64

Please sign in to comment.