You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a playground to test matchTime RegExp I found at here
https://regex101.com/r/CKXTQt/2
As you can see, it only treats a time string valid if it contains seconds and a timezone offset.
I'm using <input type="time" /> for a time/duration input; and the library treats the data input invalid.
It always only gives me hh:mm:ss OR hh:mm depending on how i've configured my input field (local time)
I also took the liberty to modified the RegExp that works for both hh:mm and hh:mm:ss, along with time timezone offset (z | +00:00) formats. https://regex101.com/r/u0mN8x/1