aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipStray.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipStray.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipStray.kt
index 87e197a96..d5cfb989d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipStray.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipStray.kt
@@ -13,14 +13,14 @@ object ChocolateFactoryTooltipStray {
private val config get() = ChocolateFactoryAPI.config
/**
- * REGEX-TEST: §7You gained §6+2,465,018 Chocolate§7!
- * REGEX-TEST: §7gained §6+30,292 Chocolate§7!
- * REGEX-TEST: §7§6+36,330 Chocolate§7!
- * REGEX-TEST: §9Rabbit§7, so you received §655,935,257
+ * REGEX-TEST: §5§o§7You gained §6+2,465,018 Chocolate§7!
+ * REGEX-TEST: §5§o§7gained §6+30,292 Chocolate§7!
+ * REGEX-TEST: §5§o§7§6+36,330 Chocolate§7!
+ * REGEX-TEST: §5§o§9Rabbit§7, so you received §655,935,257
*/
private val chocolateGainedPattern by ChocolateFactoryAPI.patternGroup.pattern(
"rabbit.stray",
- "(?:§.)?+(?:Rabbit§7, so )?(?:[Yy]ou )?(?:gained |received )?§6\\+?(?<amount>[\\d,]+)(?:$| Chocolate§7!)"
+ "(?:§.)*(?:Rabbit§7, so )?(?:[Yy]ou )?(?:gained |received )?§6\\+?(?<amount>[\\d,]+)(?: Chocolate§7!)?"
)
@SubscribeEvent(priority = EventPriority.HIGH)