aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-05-26 20:18:37 +0200
committerGitHub <noreply@github.com>2023-05-26 20:18:37 +0200
commit0353e125f1c98ae409ea0e6753e446d522955549 (patch)
treeef71160779daaba7689466e6989e68877ff8dec9 /src/main/java
parent1bd223a7a026a2810c28f55e205d9bd92c183fba (diff)
downloadskyhanni-0353e125f1c98ae409ea0e6753e446d522955549.tar.gz
skyhanni-0353e125f1c98ae409ea0e6753e446d522955549.tar.bz2
skyhanni-0353e125f1c98ae409ea0e6753e446d522955549.zip
Gemstone regex fix (#176)
Co-authored-by: superhize <superhize@gmail.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt4
1 files changed, 2 insertions, 2 deletions
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](?<level>I{1,3})§7:)?|(?:§7Stored:)?) (?<color>§[0-9a-f])(?<stored>\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)§7/(?<total>\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)".toPattern()
private val gemstonePattern =
- " (?:§[0-9a-f])(?<gemrarity>[A-z]*): §[0-9a-f](?<stored>\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?) §[0-9a-f]\\((?:\\d+(?:\\.\\d+)?(?:,\\d+)?[kKmM]?)\\)".toPattern()
+ " §[0-9a-f](?<gemrarity>[A-z]*): §[0-9a-f](?<stored>\\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
+}