aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-07-06 08:50:46 +0200
committerGitHub <noreply@github.com>2024-07-06 08:50:46 +0200
commitaf1896b9c322765292a546eefa5d666b3ceb9108 (patch)
tree70b44ec1153dc2c918bed21a9dfaac2cae9da790 /src/main/java/at/hannibal2
parentdf6ff252c99c99aa12790ef72fc5abaa1d4c84c0 (diff)
downloadskyhanni-af1896b9c322765292a546eefa5d666b3ceb9108.tar.gz
skyhanni-af1896b9c322765292a546eefa5d666b3ceb9108.tar.bz2
skyhanni-af1896b9c322765292a546eefa5d666b3ceb9108.zip
Fix: Scoreboard Votes Pattern (#2184)
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/gui/customscoreboard/ScoreboardPattern.kt7
1 files changed, 6 insertions, 1 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 11fdfba86..62b282b37 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
@@ -64,9 +64,14 @@ object ScoreboardPattern {
"yearvotes",
"(?<yearvotes>^§6Year \\d+ Votes\$)",
)
+
+ /**
+ * REGEX-TEST: §f||||||||||||||| §aFoxy
+ * REGEX-TEST: §d|§f|||||||||||||| §dDiaz
+ */
val votesPattern by mainSb.pattern(
"votes",
- "(?<votes>§[caebd]\\|+(§f)?\\|+ §(.+)$)",
+ "§.\\|+(?:§f)?\\|+ §.+",
)
val waitingForVotePattern by mainSb.pattern(
"waitingforvote",