aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-07-06 08:47:44 +0200
committerGitHub <noreply@github.com>2024-07-06 08:47:44 +0200
commit30d701c8cceaa532a9b0eee27f458feaf45aa201 (patch)
tree978eec580c259231d6b67b0597ced5043b98f9ef
parentc045f391ed6ee70e0a30c8719f606496bf2ab2a0 (diff)
downloadskyhanni-30d701c8cceaa532a9b0eee27f458feaf45aa201.tar.gz
skyhanni-30d701c8cceaa532a9b0eee27f458feaf45aa201.tar.bz2
skyhanni-30d701c8cceaa532a9b0eee27f458feaf45aa201.zip
Fix: Pet Pattern (#2188)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt10
1 files 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 (?<level>\\d+)] (?<name>.*)"
+ "(?<favorite>§.⭐ )?(?:§.)*\\[Lvl (?<level>\\d+)] (?<name>.*)",
)
private val neuRepoPetItemName by patternGroup.pattern(
"item.name.neu.format",
- "(§f§f)?§7\\[Lvl 1➡(100|200)] (?<name>.*)"
+ "(?:§f§f)?§7\\[Lvl 1➡(?:100|200)] (?<name>.*)",
)
private val ignoredPetStrings = listOf(