From 0353e125f1c98ae409ea0e6753e446d522955549 Mon Sep 17 00:00:00 2001 From: HiZe_ Date: Fri, 26 May 2023 20:18:37 +0200 Subject: Gemstone regex fix (#176) Co-authored-by: superhize --- src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt index 93ed11873..c8d929ce2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt @@ -49,7 +49,7 @@ class SackDisplay { private val numPattern = "(?:(?:§[0-9a-f](?I{1,3})§7:)?|(?:§7Stored:)?) (?§[0-9a-f])(?\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)§7/(?\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)".toPattern() private val gemstonePattern = - " (?:§[0-9a-f])(?[A-z]*): §[0-9a-f](?\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?) §[0-9a-f]\\((?:\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)\\)".toPattern() + " §[0-9a-f](?[A-z]*): §[0-9a-f](?\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)(?: §[0-9a-f]\\(\\d+(?:\\.\\d+)?(?:(?:,\\d+)?)+[kKmM]?\\))?".toPattern() @SubscribeEvent @@ -351,4 +351,4 @@ class SackDisplay { else -> 0 } -} \ No newline at end of file +} -- cgit