From f670fb96f9709f5249c1606ca77fcdf816c71058 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 14 May 2024 23:50:15 +0200 Subject: Fix: Profit Tracker Enchanted Book (#1775) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/UtilsPatterns.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at') 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( -- cgit