Best way to access default regexes? #5

nathanl opened this Issue May 12, 2012 · 3 comments

2 participants


Not an issue; just a question, maybe leading to a documentation patch.

Your default regexes meet my immediate needs, but I want to use different classes with them.

For instance, I don't want to use class="mask-num" because I'm also using a jquery plugin called 'MaskedInput', so this class name might create confusion on my team.

Instead, I'm doing this:


My question is: is $ the best way to access the default regexes?


Yes, plugin itself uses it.

@akzhan akzhan closed this May 12, 2012

You can fully override masks by simple assignment

$.fn.keyfilter.defaults.masks = { ... };

after loading of plugin but before firing of document.ready event.


Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment