diff options
author | sayomaki <willi123yao@gmail.com> | 2024-05-29 15:20:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 09:20:43 +0200 |
commit | 9f4223a660043b6b246c58eeab0546005d03ed03 (patch) | |
tree | 44fe160c887818bd367bd301c15dc2acb9e21ccc /src/main/java/at/hannibal2 | |
parent | c38ebf82a6f82ef66250710bb9b7513bc2ae732e (diff) | |
download | skyhanni-9f4223a660043b6b246c58eeab0546005d03ed03.tar.gz skyhanni-9f4223a660043b6b246c58eeab0546005d03ed03.tar.bz2 skyhanni-9f4223a660043b6b246c58eeab0546005d03ed03.zip |
Fix: Chocolate factory position not showing when line overflows (#1918)
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/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt index 3204efbf9..3d052da7a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt @@ -54,10 +54,11 @@ object ChocolateFactoryDataLoader { /** * REGEX-TEST: §7You are §8#§b114 * REGEX-TEST: §7§7You are §8#§b5,139 §7in all-time Chocolate. + * REGEX-TEST: §7§7You are §8#§b5,139 §7in all-time */ private val leaderboardPlacePattern by ChocolateFactoryAPI.patternGroup.pattern( "leaderboard.place", - "(?:§.)+You are §8#§b(?<position>[\\d,]+)(?: §7in all-time Chocolate\\.)?" + "(?:§.)+You are §8#§b(?<position>[\\d,]+)(?: §7in all-time)?(?: Chocolate\\.)?" ) private val leaderboardPercentilePattern by ChocolateFactoryAPI.patternGroup.pattern( "leaderboard.percentile", |