aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-18 09:26:00 +0200
committerGitHub <noreply@github.com>2024-08-18 09:26:00 +0200
commit79be3ba0ae38ee390a9a1c2c4968cbe1c99ff715 (patch)
tree0b9f288d0eba9f0831283f5e87811f0811e34343 /src/main/java/at/hannibal2
parentda576298b3d91066f9ad60319bc7a42c0578750d (diff)
downloadskyhanni-79be3ba0ae38ee390a9a1c2c4968cbe1c99ff715.tar.gz
skyhanni-79be3ba0ae38ee390a9a1c2c4968cbe1c99ff715.tar.bz2
skyhanni-79be3ba0ae38ee390a9a1c2c4968cbe1c99ff715.zip
Fix: One hoppity page (#2368)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
index 925eaadd8..e9a8bb687 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
@@ -39,9 +39,15 @@ object HoppityCollectionStats {
private val config get() = ChocolateFactoryAPI.config
private val patternGroup = ChocolateFactoryAPI.patternGroup.group("collection")
+
+ /**
+ * REGEX-TEST: (1/17) Hoppity's Collection
+ * REGEX-TEST: (12/17) Hoppity's Collection
+ * REGEX-TEST: Hoppity's Collection
+ */
private val pagePattern by patternGroup.pattern(
"page.current",
- "\\((?<page>\\d+)/(?<maxPage>\\d+)\\) Hoppity's Collection",
+ "(?:\\((?<page>\\d+)\\/(?<maxPage>\\d+)\\) )?Hoppity's Collection",
)
private val duplicatesFoundPattern by patternGroup.pattern(
"duplicates.found",