diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-18 09:26:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-18 09:26:00 +0200 |
commit | 79be3ba0ae38ee390a9a1c2c4968cbe1c99ff715 (patch) | |
tree | 0b9f288d0eba9f0831283f5e87811f0811e34343 /src/main/java/at/hannibal2 | |
parent | da576298b3d91066f9ad60319bc7a42c0578750d (diff) | |
download | skyhanni-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.kt | 8 |
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", |