Created
February 22, 2016 02:16
-
-
Save etoxin/1b65fc4828ce6823af53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.validator.addMethod("passwordCheck", function (value, element) { | |
| return this.optional(element) || /((?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%-_=+<>]).{8,30})/g.test(value); | |
| }, "Field must contain only letters, numbers, or dashes."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment