From 36cea7d410a3f0cca792e1212cfb4d2536bb8f51 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 28 May 2024 21:20:09 +0200 Subject: Fix: Scoreboard Time Pattern (#1909) --- .../skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at') 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) (?(§b☽|§e☀|§.⚡|§.☔)).*$" + "^\\s*§7\\d{1,2}:\\d{2}(?:am|pm)\\s*(?(§b☽|§e☀|§.⚡|§.☔))?.*$" ) val footerPattern by mainSb.pattern( "footer", -- cgit