Skip to content

Commit

Permalink
Fix: Chocolate factory position not showing when line overflows (hann…
Browse files Browse the repository at this point in the history
…ibal002#1918)

Co-authored-by: hannibal2 <[email protected]>
  • Loading branch information
sayomaki and hannibal002 authored May 29, 2024
1 parent c38ebf8 commit 9f4223a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9f4223a

Please sign in to comment.