aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt b/src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt
index 989204c0a..fbe2b90ab 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt
@@ -28,9 +28,13 @@ object UtilsPatterns {
".{2}Abiphone .*"
)
+ /**
+ * REGEX-TEST: §fEnchanted Book
+ * REGEX-TEST: §f§f§fEnchanted Book
+ */
val enchantedBookPattern by patternGroup.pattern(
"item.name.enchanted.book",
- ".{2}?Enchanted Book"
+ "(?:§.)+Enchanted Book"
)
val baitPattern by patternGroup.pattern(