string::shorter, string::longer issue. #1178
JeremyM1985
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my opinion these don't make logical sense:
shorter - Checks if the string length is shorter or equal to the specified value.
longer - Checks if the string length is longer or equal to the specified value.
https://spiral.dev/docs/validation-spiral/current/en#string
I view it like this:
"shorter" and "longer" imply strict comparison.
"shorter" shouldn't mean "less than or equal to" it should just be "less than"
"longer" shouldn't mean "greater than or equal to" it should just be "greater than"
Will the next major release have breaking changes?
I this something you agree with and i could provide a fix?
Beta Was this translation helpful? Give feedback.
All reactions