Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
martimavocado committed Dec 4, 2024
1 parent 4dc35a0 commit ed2e3e1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.toInternalName
import at.hannibal2.skyhanni.utils.NEUItems.getItemStack
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.NumberUtil.roundTo
import at.hannibal2.skyhanni.utils.RegexUtils.groupOrNull
import at.hannibal2.skyhanni.utils.RegexUtils.matchMatcher
import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
Expand All @@ -31,15 +33,15 @@ object LimboPlaytime {
*/
private val minutesPattern by patternGroup.pattern(
"minutes",
"§5§o§a(?<minutes>[\\d.,])+ minutes.*$"
"§5§o§a(?<minutes>[\\d.,]+) minutes.+\$"
)

/**
* REGEX-TEST: §5§o§b1,000.4 hours
*/
private val hoursPattern by patternGroup.pattern(
"hours",
"§5§o§b(?<hours>[\\d.,])+ hours.*$"
"§5§o§b(?<hours>[\\d.,]+) hours.+\$"
)

var tooltipPlaytime = mutableListOf<String>()
Expand Down

0 comments on commit ed2e3e1

Please sign in to comment.