RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

Two-character time marker AM or PM doesn't work #2794

Closed franatdorlet closed 4 months ago

franatdorlet commented 4 months ago

Thanks a lot, for your hard work :)

Techn1c4l commented 4 months ago

I can confirm this issue. As a temporary workaround, use the escapeCharacter (default is \) for the time marker like this: inputMask.setValue('12/31/2024 1:23:03 A\\M');.

franatdorlet commented 4 months ago

The workarround only works for setValue but not for isValid.

Techn1c4l commented 4 months ago

As another temporary workaround, you can remove the last character from your string (which will be the M) and validate against mm/dd/yyyy h:MM:ss T format.

RobinHerbots commented 4 months ago

@franatdorlet ,

Fixed in 5.0.9-beta.72

franatdorlet commented 4 months ago

@RobinHerbots Amazing work !!!!. When is it going to be published ?

RobinHerbots commented 4 months ago

done