aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(