Commit 8e0c86c
Minor fix to
* 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]>stringvalidator.LengthBetween() (#157)1 parent 9ddcff9 commit 8e0c86c
2 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
| |||
0 commit comments