mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix minute matching in decode_time
This commit is contained in:
parent
18f8a4ae1a
commit
44016a6779
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ def decode_time(string)
|
|||
hours = /(?<hours>\d+)h/.match(string).try &.["hours"].try &.to_i
|
||||
hours ||= 0
|
||||
|
||||
minutes = /(?<minutes>\d+)m/.match(string).try &.["minutes"].try &.to_i
|
||||
minutes = /(?<minutes>\d+)m(?!s)/.match(string).try &.["minutes"].try &.to_i
|
||||
minutes ||= 0
|
||||
|
||||
seconds = /(?<seconds>\d+)s/.match(string).try &.["seconds"].try &.to_i
|
||||
|
|
Loading…
Reference in a new issue