From dd20c1273715e5b28df263bb896b1d35cfefa0f2 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:42:12 +0200 Subject: Fix: Pet Pattern for ItemCategory (#2202) --- src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt index 75835f054..dfe57cc5c 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt @@ -15,10 +15,11 @@ object PetAPI { /** * REGEX-TEST: §e⭐ §7[Lvl 200] §6Golden Dragon§d ✦ + * REGEX-TEST: ⭐ [Lvl 100] Black Cat ✦ */ private val petItemName by patternGroup.pattern( "item.name", - "(?§.⭐ )?(?:§.)*\\[Lvl (?\\d+)] (?.*)", + "(?(?:§.)*⭐ )?(?:§.)*\\[Lvl (?\\d+)] (?.*)", ) private val neuRepoPetItemName by patternGroup.pattern( "item.name.neu.format", -- cgit