Created
April 22, 2018 09:36
-
-
Save kettanaito/e869f73decf1f613bb28e15b46aaa61e to your computer and use it in GitHub Desktop.
RAF - Rules analyzis
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
{ | |
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