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

mm/yy mask #387

Closed
clevrweb opened this issue Mar 2, 2016 · 3 comments
Closed

mm/yy mask #387

clevrweb opened this issue Mar 2, 2016 · 3 comments

Comments

@clevrweb
Copy link

clevrweb commented Mar 2, 2016

How to mask cc exp mm/yy = only month/2 dig year? The pattern takes regex?

Thanks

@kafeltz
Copy link

kafeltz commented Mar 2, 2016

"99/99"?
not sure if i understand the question

@clevrweb
Copy link
Author

clevrweb commented Mar 2, 2016

Ok, this I know but if I want to lock mm from 01 to 12 and yy from 16 to 26? It
takes regex?

Thanks

EmailSignature [cid:cm_1440613436002_1]

CONFIDENTIALITY STATEMENT

The information contained in this transmission may contain privileged and
confidential information. It is intended only for the use of the person(s) named
above.

If you are not the intended recipient, you are hereby notified that any review,
dissemination, distribution or duplication of this communication is strictly
prohibited.

If you are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message.

Sent using CloudMagic Email
[https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.1.32&pv=5.1.1&source=email_footer_2] On Wed, Mar 02, 2016 at 1:39 PM, Ismael Santos Kafeltz < notifications@github.com [notifications@github.com] > wrote:
"99/99"?


Reply to this email directly or view it on GitHub
[https://github.com//issues/387#issuecomment-191391514] .[https://github.com/notifications/beacon/AKUoSH_HJOI4oTdPp9OhxIc3dQw9Nwcuks5ppedbgaJpZM4HnnEe.gif]

@igorescobar
Copy link
Owner

igorescobar commented Mar 6, 2016

This plugin do not cover features specific for validation.
I recommend you to use a any other validation plugin along with this one.

If you still don't want to use another plugin your only way out is exploring the plugin callbacks and add your validation there. Here is an example:
https://gist.github.com/igorescobar/6450250

For those who thinks that the event onInvalid does validation it doesn't validate like that. The event is trigered when the user try to input something that isn't matching with the patterns defined on the translation object which is explained on our docs at the section General Options.

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

3 participants