Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for padding on mask #62

Open
davija opened this issue Jun 23, 2022 · 0 comments
Open

Allow for padding on mask #62

davija opened this issue Jun 23, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@davija
Copy link

davija commented Jun 23, 2022

Currently, the pattern and mask seem to be very rigid...

It would be nice to define something like this:

What this should do (assuming my regex is correct) is allow for inputs of the following:
3/25
1/15
02/01
03/23

For some reason, most of these do NOT work.

02/01 - works
03/23 - works

Trying to type 3/25 yields -> 32/5
Trying to type 1/15 yields -> 11/5

Is there a way when the user types 3/ to force it to recognize that the user really means 03/?

@changhuixu changhuixu added the help wanted Extra attention is needed label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants