From c25b622fcafb9bf033ea801d6f9787187aaa1b0d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 4 Dec 2023 03:32:49 +0100 Subject: Fix Redundant \\ in regex --- src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 1265dcc3c..fd52de6fb 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -254,7 +254,7 @@ object ItemUtils { fun isSkyBlockMenuItem(stack: ItemStack?): Boolean = stack?.getInternalName()?.equals("SKYBLOCK_MENU") ?: false // TODO USE SH-REPO - private val patternInFront = "(?: *§8(\\+§[\\d\\w])?(?[\\d\\.km,]+)(x )?)?(?.*)".toPattern() + private val patternInFront = "(?: *§8(\\+§[\\d\\w])?(?[\\d.km,]+)(x )?)?(?.*)".toPattern() private val patternBehind = "(?(?:['\\w-]+ ?)+)(?:§8x(?[\\d,]+))?".toPattern() private val itemAmountCache = mutableMapOf>() -- cgit