From 44016a67791625bd93421ede564fee5a1ba3270b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 18 Jul 2018 15:17:02 -0500 Subject: [PATCH] Fix minute matching in decode_time --- src/invidious/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index d9d64bf0..d3f85b30 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -819,7 +819,7 @@ def decode_time(string) hours = /(?\d+)h/.match(string).try &.["hours"].try &.to_i hours ||= 0 - minutes = /(?\d+)m/.match(string).try &.["minutes"].try &.to_i + minutes = /(?\d+)m(?!s)/.match(string).try &.["minutes"].try &.to_i minutes ||= 0 seconds = /(?\d+)s/.match(string).try &.["seconds"].try &.to_i