aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-04 03:32:49 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-04 03:32:49 +0100
commitc25b622fcafb9bf033ea801d6f9787187aaa1b0d (patch)
tree9bd581d54c957049ef4ec9038d97db42c68e9bdf /src/main/java/at/hannibal2
parent84ec0487a971746256e52710eee92b8c2e18ac32 (diff)
downloadskyhanni-c25b622fcafb9bf033ea801d6f9787187aaa1b0d.tar.gz
skyhanni-c25b622fcafb9bf033ea801d6f9787187aaa1b0d.tar.bz2
skyhanni-c25b622fcafb9bf033ea801d6f9787187aaa1b0d.zip
Fix Redundant \\ in regex
Diffstat (limited to 'src/main/java/at/hannibal2')
-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..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])?(?<amount>[\\d\\.km,]+)(x )?)?(?<name>.*)".toPattern()
+ private val patternInFront = "(?: *§8(\\+§[\\d\\w])?(?<amount>[\\d.km,]+)(x )?)?(?<name>.*)".toPattern()
private val patternBehind = "(?<name>(?:['\\w-]+ ?)+)(?:§8x(?<amount>[\\d,]+))?".toPattern()
private val itemAmountCache = mutableMapOf<String, Pair<String, Int>>()