kirkouimet / jformer

jFormer is a form framework written on top of jQuery that allows you to quickly generate beautiful, standards compliant forms.
http://www.jformer.com/
155 stars 47 forks source link

Added custom_regexp validation rule #4

Closed castarco closed 12 years ago

castarco commented 13 years ago

I've added the custom_regexp validation rule to JFormComponentSingleLineText , in order to make jformer able to work with many languages and different requirements, I've added the "custom_message" parameter to my validation rule, but I'm interested into do this work with other validation rules. (I'm spanish and I need something more flexible than jformer is today).

kirkouimet commented 12 years ago

I merged the pull request, but I probably need to refactor custom_regexp to customRegex. Thanks for the submission castarco!