limcheekin / jquery-validation-ui

JQuery Validation UI Plugin - Client Side Validation without writing JavaScript
http://limcheekin.github.io/jquery-validation-ui/
Apache License 2.0
20 stars 18 forks source link

Matches does not work with \s, \d, etc #8

Closed bluesliverx closed 12 years ago

bluesliverx commented 12 years ago

The problem is that the code new RegExp("\d{3}") would fail for "010". What actually needs to happen is new RegExp("\d{3}") (notice the double backslash). This should occur in the taglib. I have a fix ready to go for this and will submit the pull request.