aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-09-17 09:36:45 +0200
committerGitHub <noreply@github.com>2024-09-17 09:36:45 +0200
commitfe59a3143b0b8a181869c5f11b5c869b6ea7c225 (patch)
tree054a2af3d9d422a39b8fb34aaab6c06df9faf2e8 /src/main/java/at/hannibal2/skyhanni/features
parent46d39d831c23b02481c3ed0b34ebf74ac26bc088 (diff)
downloadskyhanni-fe59a3143b0b8a181869c5f11b5c869b6ea7c225.tar.gz
skyhanni-fe59a3143b0b8a181869c5f11b5c869b6ea7c225.tar.bz2
skyhanni-fe59a3143b0b8a181869c5f11b5c869b6ea7c225.zip
Fix: Dojo Pattern (#2519)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt15
1 files changed, 10 insertions, 5 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 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: (§.)*(?<challenge>[\\w ]+)$",
+ "(§.)*Challenge: (§.)*(?<challenge>[\\w ]+)",
)
val dojoDifficultyPattern by miscSb.pattern(
"dojodifficulty",
- "^(§.)*Difficulty: (§.)*(?<difficulty>[\\w ]+)$",
+ "(§.)*Difficulty: (§.)*(?<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",