-
Notifications
You must be signed in to change notification settings - Fork 12
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
Minor fix to stringvalidator.LengthBetween()
#157
Minor fix to stringvalidator.LengthBetween()
#157
Conversation
The Go doc comment now more accurately reflects the validator behavior. An unnecessary validation (max cannot be less than zero) was removed.
LengthBetween()
stringvalidator.LengthBetween()
Hi @chrismarget 👋 Thank you for the PR. Could I ask that you add a couple of tests to verify that the "greater than or equal to" conditions are met for both |
Hi @bendbennett, I think 00165d6 has what you're looking for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Just very minor suggestion to make test names a little more explicit.
Suggested change from @bendbennett Co-authored-by: Benjamin Bennett <[email protected]>
Suggested change from @bendbennett Co-authored-by: Benjamin Bennett <[email protected]>
Thanks for the contribution @chrismarget 👍 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
I wrote some bugs by relying on
LengthBetween()
's Go doc comment.The Go doc comment now more accurately reflects the validator behavior.
An unnecessary validation (max cannot be less than zero, even without this check) was removed.