aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt2
2 files changed, 11 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 2db0c37f7..1f793709a 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
@@ -186,6 +186,16 @@ object ScoreboardPattern {
"powder",
"(?:§.)*᠅ (?:§.)(?<type>Gemstone|Mithril|Glacite)(?: Powder)?(?:§.)*:? (?:§.)*(?<amount>[\\d,.]*)"
)
+
+ /**
+ * REGEX-TEST: §2᠅ §fMithril§f:§695
+ * REGEX-TEST: §d᠅ §fGemstone§f
+ * REGEX-TEST: §d᠅ §fGemstone§f§e(+1)
+ */
+ val powderGreedyPattern by miningSb.pattern(
+ "powdergreedy",
+ "(?:§.)*᠅ (?:§.)(?<type>Gemstone|Mithril|Glacite)(?: Powder)?.*$"
+ )
val windCompassPattern by miningSb.pattern(
"windcompass",
"§9Wind Compass$"
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
index 6ed53c60e..eeaa0b447 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt
@@ -60,7 +60,7 @@ object UnknownLinesHandler {
SbPattern.mobLocationPattern,
SbPattern.jacobsContestPattern,
SbPattern.plotPattern,
- SbPattern.powderPattern,
+ SbPattern.powderGreedyPattern,
SbPattern.windCompassPattern,
SbPattern.windCompassArrowPattern,
SbPattern.miningEventPattern,