diff options
author | Walker Selby <git@walkerselby.com> | 2023-12-03 18:32:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 03:32:29 +0100 |
commit | d81f2b443d8198086a9d36246aabb7ffd3833980 (patch) | |
tree | aaa6a76646588526782cf7dbac0fd4f33c2a0d04 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 84ec0487a971746256e52710eee92b8c2e18ac32 (diff) | |
download | skyhanni-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.kt | 2 |
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>>() |