diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 301e9f8c2..1af5cec55 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -116,7 +116,7 @@ export function generateRandomString(length: number): string { * @returns seconds */ export function timeToSeconds(time: string): number { - const params = time.split(':').map((param) => parseInt(param)); + const params = time.split(':').map((param) => parseInt(param.replace(/\D/g, ''))); switch (params.length) { case 1: return params[0];