Skip to content

Instantly share code, notes, and snippets.

@andycarrell
Last active April 26, 2019 06:23
Show Gist options
  • Select an option

  • Save andycarrell/c12d8c4af5b3fafe019fd97d0b15f493 to your computer and use it in GitHub Desktop.

Select an option

Save andycarrell/c12d8c4af5b3fafe019fd97d0b15f493 to your computer and use it in GitHub Desktop.
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