aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-09-19 20:40:10 +0200
committerGitHub <noreply@github.com>2024-09-19 20:40:10 +0200
commitae23866e8cd6264f6c55e6891fcfb9e748f91152 (patch)
tree8668f14a12f143169b5bd00cf8fab09497d38cda
parent17f900c1d54ba6007de7e6cf4f62ded5ce0655e3 (diff)
downloadskyhanni-ae23866e8cd6264f6c55e6891fcfb9e748f91152.tar.gz
skyhanni-ae23866e8cd6264f6c55e6891fcfb9e748f91152.tar.bz2
skyhanni-ae23866e8cd6264f6c55e6891fcfb9e748f91152.zip
fix (#2545)
Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
index 0324da855..fb014cc29 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
@@ -246,13 +246,17 @@ object ScoreboardPattern {
"raffleuseless",
"^(Find tickets on the|ground and bring them|to the raffle box)$",
)
+
+ /**
+ * REGEX-TEST: Tickets: §a8 §7(17.4%)
+ */
val raffleTicketsPattern by miningSb.pattern(
"raffletickets",
- "^Tickets: §a\\d+ §7\\(\\d{1,3}\\.\\d%\\)$",
+ "Tickets: §a\\d+ §7\\(\\d+(\\.\\d)?%\\)",
)
val rafflePoolPattern by miningSb.pattern(
"rafflepool",
- "^Pool: §6\\d+§8/500$",
+ "Pool: §6\\d+",
)
val mithrilUselessPattern by miningSb.pattern(
"mithriluseless",