aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/PetAPI.kt')
-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",