Created
May 11, 2014 00:44
-
-
Save edymerchk/51f5e416216ef44a0847 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
| at least one digit | |
| at least one lowercase | |
| at least one uppercase | |
| at least one special character | |
| regex = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[ ! @ # $ % ^ & * ( ) _ - + =])/ | |
| regex.test(req.body.password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment