From 30d701c8cceaa532a9b0eee27f458feaf45aa201 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Sat, 6 Jul 2024 08:47:44 +0200 Subject: Fix: Pet Pattern (#2188) --- src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt index 5b65c8e23..75835f054 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt @@ -10,15 +10,19 @@ object PetAPI { private val patternGroup = RepoPattern.group("misc.pet") private val petMenuPattern by patternGroup.pattern( "menu.title", - "Pets(?: \\(\\d+/\\d+\\) )?" + "Pets(?: \\(\\d+/\\d+\\) )?", ) + + /** + * REGEX-TEST: §e⭐ §7[Lvl 200] §6Golden Dragon§d ✦ + */ private val petItemName by patternGroup.pattern( "item.name", - "(?:§.)*\\[Lvl (?\\d+)] (?.*)" + "(?§.⭐ )?(?:§.)*\\[Lvl (?\\d+)] (?.*)", ) private val neuRepoPetItemName by patternGroup.pattern( "item.name.neu.format", - "(§f§f)?§7\\[Lvl 1➡(100|200)] (?.*)" + "(?:§f§f)?§7\\[Lvl 1➡(?:100|200)] (?.*)", ) private val ignoredPetStrings = listOf( -- cgit