diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-18 23:14:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-18 23:14:31 +0100 |
commit | 5216c084ac805c49db83b44287dce1f18f241946 (patch) | |
tree | 4f5509c3fb6b8bc808d1db2353101c1902df2572 /src/main/java/at | |
parent | ce37665493a0634b6cc29c66f6ccbac7674b0249 (diff) | |
download | skyhanni-5216c084ac805c49db83b44287dce1f18f241946.tar.gz skyhanni-5216c084ac805c49db83b44287dce1f18f241946.tar.bz2 skyhanni-5216c084ac805c49db83b44287dce1f18f241946.zip |
Added support for more formats
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt index f7a684630..8002c4768 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt @@ -5,7 +5,7 @@ import java.util.regex.Pattern object TimeUtils { private val pattern = - Pattern.compile("(?:(?<y>\\d+)y(?:\\w* ?)?)?(?:(?<d>\\d+)d(?:\\w* ?)?)?(?:(?<h>\\d+)h(?:\\w* ?)?)?(?:(?<m>\\d+)m(?:\\w* ?)?)?(?:(?<s>\\d+)s(?:\\w* ?)?)?") + Pattern.compile("(?:(?<y>\\d+) ?y(?:\\w* ?)?)?(?:(?<d>\\d+) ?d(?:\\w* ?)?)?(?:(?<h>\\d+) ?h(?:\\w* ?)?)?(?:(?<m>\\d+) ?m(?:\\w* ?)?)?(?:(?<s>\\d+) ?s(?:\\w* ?)?)?") fun formatDuration( millis: Long, |