aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-07-15 16:42:12 +0200
committerGitHub <noreply@github.com>2024-07-15 16:42:12 +0200
commitdd20c1273715e5b28df263bb896b1d35cfefa0f2 (patch)
tree036687937e45e7becae99c90094ad06c8c0c211e
parenta9d10926993e22cc0bd6b75a05ae64c7abbfc059 (diff)
downloadskyhanni-dd20c1273715e5b28df263bb896b1d35cfefa0f2.tar.gz
skyhanni-dd20c1273715e5b28df263bb896b1d35cfefa0f2.tar.bz2
skyhanni-dd20c1273715e5b28df263bb896b1d35cfefa0f2.zip
Fix: Pet Pattern for ItemCategory (#2202)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt3
1 files changed, 2 insertions, 1 deletions
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",
- "(?<favorite>§.⭐ )?(?:§.)*\\[Lvl (?<level>\\d+)] (?<name>.*)",
+ "(?<favorite>(?:§.)*⭐ )?(?:§.)*\\[Lvl (?<level>\\d+)] (?<name>.*)",
)
private val neuRepoPetItemName by patternGroup.pattern(
"item.name.neu.format",