Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add or(...)? #21

Open
zeg-io opened this issue Apr 22, 2019 · 1 comment
Open

Add or(...)? #21

zeg-io opened this issue Apr 22, 2019 · 1 comment

Comments

@zeg-io
Copy link

zeg-io commented Apr 22, 2019

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.

@tarunbatra
Copy link
Owner

Thanks @zeg-io for the input. Will explore this.
P.S: Open for PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants