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 has and hasAny validators #43

Closed
deankarn opened this issue May 21, 2015 · 2 comments
Closed

Add has and hasAny validators #43

deankarn opened this issue May 21, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@deankarn
Copy link
Contributor

Example:

This will allow a field, say username, to exclude a character or string.

And has any will exclude any of the characters provided

AndcontainsAny

@deankarn deankarn added the new label May 21, 2015
@deankarn deankarn self-assigned this May 21, 2015
@deankarn deankarn added this to the v5 Additions milestone May 21, 2015
@deankarn
Copy link
Contributor Author

adding hasRune as well to mach golang contains string params

@deankarn
Copy link
Contributor Author

modified to use contains, containsany and containsrune

and added excludes, excludesall and excludesrune

This was referenced May 23, 2015
fairyhunter13 added a commit to fairyhunter13/validator that referenced this issue Jul 12, 2020
…ludesrune validation functions + tests + docuemtation

for go-playground#43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant