fix: increase max value for the grace period

- increase max value for the grace period as same as it was before in the legacy experience
This commit is contained in:
Muhammad Faraz Maqsood
2025-05-23 17:12:09 +05:00
committed by Muhammad Faraz Maqsood
parent 8e1e2fdb46
commit 951b707c7d

View File

@@ -17,7 +17,7 @@ export function formatTime(time) {
* @returns {boolean} - returns `true` if `inputStr` is a valid time, else `false`.
*/
export function timerValidation(inputStr, setShowSavePrompt, setIsError) {
const timePattern = /^(?:[01]\d|2[0-3]):[0-5]\d$/;
const timePattern = /^(?:\d{2,3}):[0-5]\d$/;
const isValid = timePattern.test(inputStr);
setShowSavePrompt(isValid);