Last active
April 26, 2019 06:23
-
-
Save andycarrell/c12d8c4af5b3fafe019fd97d0b15f493 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
| password: Yup.string() | |
| .required("Password is required") | |
| .min(8, "Password must be at least 8 characters long") | |
| .matches(/\d/, "Password must contain a number") | |
| .matches( | |
| /[\W_]/, | |
| "Password must contain a non-alphanumberic character", | |
| ), | |
| // new RegExp(`^((?!${name}).)*$`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment