aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-05-28 21:20:09 +0200
committerGitHub <noreply@github.com>2024-05-28 21:20:09 +0200
commit36cea7d410a3f0cca792e1212cfb4d2536bb8f51 (patch)
treebc7267e85e159c0570f9a05553296fd926d52843 /src/main/java/at
parentc86c551a1da561b609b2ace62fe94a262435ca5b (diff)
downloadskyhanni-36cea7d410a3f0cca792e1212cfb4d2536bb8f51.tar.gz
skyhanni-36cea7d410a3f0cca792e1212cfb4d2536bb8f51.tar.bz2
skyhanni-36cea7d410a3f0cca792e1212cfb4d2536bb8f51.zip
Fix: Scoreboard Time Pattern (#1909)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt6
1 files changed, 5 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 e5637ab97..ec4cf0c6f 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
@@ -38,9 +38,13 @@ object ScoreboardPattern {
"date",
"^\\s*(Late |Early )?(Spring|Summer|Autumn|Winter) \\d{1,2}(st|nd|rd|th)?.*"
)
+ /*
+ * REGEX-TEST: §78:50am
+ * REGEX-TEST: §75:50am §b☽
+ */
val timePattern by mainSb.pattern(
"time",
- "^\\s*§7\\d{1,2}:\\d{2}(?:am|pm) (?<symbol>(§b☽|§e☀|§.⚡|§.☔)).*$"
+ "^\\s*§7\\d{1,2}:\\d{2}(?:am|pm)\\s*(?<symbol>(§b☽|§e☀|§.⚡|§.☔))?.*$"
)
val footerPattern by mainSb.pattern(
"footer",