From c3681e0e57879ead223a0cd660f6ba8036444881 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Sun, 17 Nov 2024 14:58:06 +0800 Subject: [PATCH] chore: fix typo --- .../io/github/thebusybiscuit/slimefun4/utils/ChargeUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/ChargeUtils.java b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/ChargeUtils.java index 3681704966..db04ab83b1 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/ChargeUtils.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/ChargeUtils.java @@ -28,9 +28,9 @@ public final class ChargeUtils { private static final String LORE_PREFIX = ChatColors.color("&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(ChatColors.color("(&c&o)?" + LORE_PREFIX) + NUMBER_PREFIX + " / " + NUMBER_PREFIX + " J"); + Pattern.compile(ChatColors.color("(&c&o)?" + LORE_PREFIX) + NUMBER_REGEX + " / " + NUMBER_REGEX + " J"); private ChargeUtils() {}