diff options
author | HiZe_ <superhize@hotmail.com> | 2023-07-19 20:47:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 20:47:21 +0200 |
commit | 3eb97a2a74833760c2d1fa4b053eff49d94f12ad (patch) | |
tree | 217c7952bc81a7a993c037b32431cbbaf2efc97f /src/main/java/at/hannibal2 | |
parent | 9aa8cd659bb1cefafda498f0684f9971aa0c8c94 (diff) | |
download | skyhanni-3eb97a2a74833760c2d1fa4b053eff49d94f12ad.tar.gz skyhanni-3eb97a2a74833760c2d1fa4b053eff49d94f12ad.tar.bz2 skyhanni-3eb97a2a74833760c2d1fa4b053eff49d94f12ad.zip |
Fixed regex in SackDisplay (#318)
Co-authored-by: superhize <superhize@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt | 2 |
1 files changed, 1 insertions, 1 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 c5a9797d6..5f66d3ea6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt @@ -52,7 +52,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() + "(?:(?:§[0-9a-f](?<level>I{1,3})§7:)?|(?:§7Stored:)?) (?<color>§[0-9a-f])(?<stored>[0-9.,kKmMbB]+)§7/(?<total>\\d+(?:[0-9.,]+)?[kKmMbB]?)".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() |