password-validator
password-validator copied to clipboard
Add or(...)?
Any thoughts on adding an .or()
operation?
I would like to specify something like:
min 8, max 100 Use a capitol letter, a lower case letter, and a symbol OR use spaces and minimum length 15
Clearly this could be done by having separate logic based on an if in my code... but I think it'd be cleaner to have it in the library.
Thanks @zeg-io for the input. Will explore this. P.S: Open for PRs.