-
Notifications
You must be signed in to change notification settings - Fork 2
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
maybe focus only on masking? #3
Comments
Thank you very much for opening the issue. I actually was purely focusing on masking, not validating. What part of the explainer made you think it was also aimed at validation? I need to reword this then. Thanks for your help in making this clearer. |
OK I'm confused.
That's what I call 'validation' where you ensure the input characters & word shape are as expected. So if you enter in a 14 digit credit card number, you'll be alerted that the number is wrong (since there are not enough numbers). But I guess 'input masking' term is more commonly used as a template, & 'validation' is when you check if that credit card is an valid data (eg postal code is real)? Maybe an animation would help thick people like me? 😉 |
Oh, I see where the confusion stems from. We have been talking across each other. One thing is checking if Your animation is spot on. My present thinking is that this feature should not stop you from leaving a form field mid way (like in a |
Seems you are expanding the scope of masking ((not showing characters as being typed) into validation (ensuring typed characters are correct for field)? I can see some cross-over, but will exponentially increase the time to get through the validation & implementation stages.
Might be useful to explore how the 2 would interact to build the masking proposal, but I can see masking-alone get through the process in a year, while validation would take many years & TBH create a bunch of code that is rarely used for all the edge cases.
(eg the piping proposal has totally stalled out; too many moving parts
But if you want to dig into validation more, might be better just to label the proposal as
js-input-validation-masking
.I used to help out with some RegEx presets; @tunnckoCore is the main organizer there.
https://github.com/regexhq
The text was updated successfully, but these errors were encountered: