Skip to content

Instantly share code, notes, and snippets.

@kettanaito
Created April 22, 2018 09:36
Show Gist options
  • Save kettanaito/e869f73decf1f613bb28e15b46aaa61e to your computer and use it in GitHub Desktop.
Save kettanaito/e869f73decf1f613bb28e15b46aaa61e to your computer and use it in GitHub Desktop.
RAF - Rules analyzis
{
type: {
password: {
capitalLetter: ({ value }) => /[A-Z]/.test(value),
oneNumber: ({ value }) => /[0-9]/.test(value),
minLength: ({ value }) => (value.length > 5)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment