From fe59a3143b0b8a181869c5f11b5c869b6ea7c225 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 17 Sep 2024 09:36:45 +0200 Subject: Fix: Dojo Pattern (#2519) --- .../features/gui/customscoreboard/ScoreboardPattern.kt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src') 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 9e2694ec0..1c6fb4282 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 @@ -364,23 +364,28 @@ object ScoreboardPattern { ) val dojoChallengePattern by miscSb.pattern( "dojochallenge", - "^(§.)*Challenge: (§.)*(?[\\w ]+)$", + "(§.)*Challenge: (§.)*(?[\\w ]+)", ) val dojoDifficultyPattern by miscSb.pattern( "dojodifficulty", - "^(§.)*Difficulty: (§.)*(?[\\w ]+)$", + "(§.)*Difficulty: (§.)*(?[\\w ]+)", ) val dojoPointsPattern by miscSb.pattern( "dojopoints", - "^(§.)*Points: (§.)*[\\w.]+ ?(§7\\(§.*§7\\))?\$", + "(§.)*Points: (§.)*[\\w.]+.*", ) + + /** + * There should be a space at the end of the test, Intellij keeps removing it + * REGEX-TEST: Time: §a20s + */ val dojoTimePattern by miscSb.pattern( "dojotime", - "^(§.)*Time: (§.)*[\\w.]+( §7\\(§.*§7\\))?$", + "(§.)*Time: (§.)*[\\w.]+.*", ) val objectivePattern by miscSb.pattern( "objective", - "^(§.)*(Objective|Quest).*", + "(§.)*(Objective|Quest).*", ) val queuePattern by miscSb.pattern( "queued", -- cgit