From 32b0588530de68fa403547d14d910f371fa24b21 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:33:03 -0700 Subject: [PATCH] Update TIDBSubmissionForm.tsx --- src/components/player/TIDBSubmissionForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/player/TIDBSubmissionForm.tsx b/src/components/player/TIDBSubmissionForm.tsx index a1a19b40..456b2586 100644 --- a/src/components/player/TIDBSubmissionForm.tsx +++ b/src/components/player/TIDBSubmissionForm.tsx @@ -19,7 +19,7 @@ function parseTimeToSeconds(timeStr: string): number | null { if (!timeStr.trim()) return null; // Check if it's in hh:mm:ss format - const hhmmssMatch = timeStr.match(/^($\d{1,2}$):($[0-5]?\d$):($[0-5]?\d$)$/); + const hhmmssMatch = timeStr.match(/^(\d{1,2}):(0?[0-5]\d):(0?[0-5]\d)$/); if (hhmmssMatch) { const hours = parseInt(hhmmssMatch[1], 10); const minutes = parseInt(hhmmssMatch[2], 10); @@ -33,7 +33,7 @@ function parseTimeToSeconds(timeStr: string): number | null { } // Check if it's in mm:ss format - const mmssMatch = timeStr.match(/^($\d{1,3}$):($[0-5]?\d$)$/); + const mmssMatch = timeStr.match(/^(\d{1,3}):(0?[0-5]\d)$/); if (mmssMatch) { const minutes = parseInt(mmssMatch[1], 10); const seconds = parseInt(mmssMatch[2], 10);