diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-15 22:13:37 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-15 22:13:37 +0200 |
commit | 2c36de4e212b59a2feca2e1b4c9727d6ed9aea0f (patch) | |
tree | 8503487ab1e75e59dc7fed4a710a033f2fcb2fad /src/main | |
parent | aa6c25de0aa73ec963d1c50f4d7da8431a89f8dc (diff) | |
download | skyhanni-2c36de4e212b59a2feca2e1b4c9727d6ed9aea0f.tar.gz skyhanni-2c36de4e212b59a2feca2e1b4c9727d6ed9aea0f.tar.bz2 skyhanni-2c36de4e212b59a2feca2e1b4c9727d6ed9aea0f.zip |
made regex more compact
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt index 496fe1712..09b86deba 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt @@ -18,7 +18,7 @@ import kotlin.time.Duration.Companion.milliseconds class GardenLevelDisplay { private val config get() = SkyHanniMod.feature.garden - private val expToNextLevelPattern = "(?:.*) §e(?<nextLevelExp>.*)§6\\/(?:.*)".toPattern() + private val expToNextLevelPattern = ".* §e(?<nextLevelExp>.*)§6/.*".toPattern() private val overflowPattern = ".*§r §6(?<overflow>.*) XP".toPattern() private val namePattern = "Garden Level (?<currentLevel>.*)".toPattern() private var display = "" |