diff --git a/src/utils/time.ts b/src/utils/time.ts index 95d8728..89b36f9 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -34,7 +34,7 @@ export const strToSeconds = (time: string) => { }>[0-9]+(?=[s]?))`, ); - const data = Object.assign({}, regex.exec(time)?.groups); + const data = Object.assign({}, regex.exec(time.toLowerCase())?.groups); let res = 0; Object.entries(data).forEach(([key, value]) => {