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

Custom mask type #154

Open
rodrigodiasf1984 opened this issue Jul 6, 2023 · 3 comments
Open

Custom mask type #154

rodrigodiasf1984 opened this issue Jul 6, 2023 · 3 comments

Comments

@rodrigodiasf1984
Copy link

Hi guys, first of all, I'd like to thank you for this amazing package.

Second, how can I use a mask like this?

4 number 1 space and 3 letters?

image

I need something like this, but the 3 last digits should be only letters, at the moment this allow the user to type numbers too.
image

I'm using react-hook-form

Maybe it needs to add a custom mask type? Or can I achieve this using some regex?

Thanks for your help.

@rodrigodiasf1984
Copy link
Author

@Cnilton can you help me with this? Thanks.

@Cnilton
Copy link
Owner

Cnilton commented Aug 19, 2023

Hi, @rodrigodiasf1984, sorry for the holdup. So to achieve this, we would have to do a regex-like comparison to distinguish characters from numbers. I'll come up with a solution, but it will take some time, ok?

@rodrigodiasf1984
Copy link
Author

rodrigodiasf1984 commented Aug 21, 2023

Hi, @rodrigodiasf1984, sorry for the holdup. So to achieve this, we would have to do a regex-like comparison to distinguish characters from numbers. I'll come up with a solution, but it will take some time, ok?

Hi @Cnilton, thanks for your feedback, it's ok, when you've achieved this let me know, Thanks!(Obrigado mano!TMJ!)

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