From 9f4223a660043b6b246c58eeab0546005d03ed03 Mon Sep 17 00:00:00 2001 From: sayomaki Date: Wed, 29 May 2024 15:20:43 +0800 Subject: Fix: Chocolate factory position not showing when line overflows (#1918) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../features/inventory/chocolatefactory/ChocolateFactoryDataLoader.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') 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(?[\\d,]+)(?: §7in all-time Chocolate\\.)?" + "(?:§.)+You are §8#§b(?[\\d,]+)(?: §7in all-time)?(?: Chocolate\\.)?" ) private val leaderboardPercentilePattern by ChocolateFactoryAPI.patternGroup.pattern( "leaderboard.percentile", -- cgit