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

Support multiple characters validation #85

Closed
JoakoV3 opened this issue Nov 21, 2023 · 1 comment
Closed

Support multiple characters validation #85

JoakoV3 opened this issue Nov 21, 2023 · 1 comment

Comments

@JoakoV3
Copy link

JoakoV3 commented Nov 21, 2023

Is there a way to make the library suport this multiple characters validation?

MaskTextInputFormatter(
  mask: 'dd/mm/yyyy', 
  filter: {'dd': RegExp(r'[0-31]'), 'mm': RegExp(r'[0-31]'), 'yyyy': RegExp(r'[1990-2023]')}
)

It would be nice because it would avoid the use of validator.
I am not sure if the regex is okay, but you get the idea

@siqwin
Copy link
Owner

siqwin commented Nov 22, 2023

Check the example app, there is an example of validating a date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants