-
Notifications
You must be signed in to change notification settings - Fork 86
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
Patterns #31
Comments
I was trying this And add some lines in default settings (line 38) also near to the line 133 |
Thank you very much!!! |
You shouldn't need to modify the source to make something like this work. The documentation explains that the correct way to do this is to add the customised regular expression to the pattern attribute like this:
I personally would like to have the option for adding new RegExp to the settings instead of filling the HTML with crafty regular expressions. ;) I'll PR a change for this and hope @yairEO accepts it. :) BTW, fantastic job @yairEO, thanks a lot! |
Thank you @tiomno :) You can already bypass the default patterns with a custom settings object. These are the default settings:
And you can pass it when you instantiate a
(The first argument is an Object with the texts you wish to override) |
Is it possible for a pattern to be made specifically for letters and numbers, without accepting any other characters-symbol??
The text was updated successfully, but these errors were encountered: