-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fix to
stringvalidator.LengthBetween()
(#157)
* Minor fix to `LengthBetween()` The Go doc comment now more accurately reflects the validator behavior. An unnecessary validation (max cannot be less than zero) was removed. * add test cases for `stringvalidator.LengthBetween`'s inclusive behavior * Update stringvalidator/length_between_test.go Suggested change from @bendbennett Co-authored-by: Benjamin Bennett <[email protected]> * Update stringvalidator/length_between_test.go Suggested change from @bendbennett Co-authored-by: Benjamin Bennett <[email protected]> --------- Co-authored-by: Benjamin Bennett <[email protected]>
- Loading branch information
1 parent
9ddcff9
commit 8e0c86c
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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