aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-12-03 18:32:29 -0800
committerGitHub <noreply@github.com>2023-12-04 03:32:29 +0100
commitd81f2b443d8198086a9d36246aabb7ffd3833980 (patch)
treeaaa6a76646588526782cf7dbac0fd4f33c2a0d04 /src/main/java/at/hannibal2/skyhanni/utils
parent84ec0487a971746256e52710eee92b8c2e18ac32 (diff)
downloadskyhanni-d81f2b443d8198086a9d36246aabb7ffd3833980.tar.gz
skyhanni-d81f2b443d8198086a9d36246aabb7ffd3833980.tar.bz2
skyhanni-d81f2b443d8198086a9d36246aabb7ffd3833980.zip
Fix Redundant d in regex (#667)
Fix Redundant d in regex #667
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 1265dcc3c..2c56459df 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])?(?<amount>[\\d\\.km,]+)(x )?)?(?<name>.*)".toPattern()
+ private val patternInFront = "(?: *§8(\\+§[\\w])?(?<amount>[\\d\\.km,]+)(x )?)?(?<name>.*)".toPattern()
private val patternBehind = "(?<name>(?:['\\w-]+ ?)+)(?:§8x(?<amount>[\\d,]+))?".toPattern()
private val itemAmountCache = mutableMapOf<String, Pair<String, Int>>()