You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the options for isLength are min and max only.
I believe there could be more options. I'm needing the field size to be exactly 11 or 14 or 16.
For now I'm using min 11 and max 16 but in my program the length values (12, 13, 15) should not be accepted.
a new option can be:
exact: {11, 14, 16} or size: {11, 14, 16}
Do you think this change adding more options would be a good thing?
The text was updated successfully, but these errors were encountered:
Hello, as a user, I think this is a really useful feature, I am currently working in this issue, to create a function that does this, I will create a Pull Request later when I complete the feature :)
Hello, I have added the required feature. If the string length falls in the range and if exact number/array/object is mentioned, then exact conditions are checked. If not provided, then true is returned is len>=min & len<=max and false is returned is not in range [min, max]. Thanks for giving me a chance to contribute :)
PR#2019 - #2019
Currently the options for isLength are
min
andmax
only.I believe there could be more options. I'm needing the field size to be exactly 11 or 14 or 16.
For now I'm using
min
11 andmax
16 but in my program the length values (12, 13, 15) should not be accepted.a new option can be:
exact: {11, 14, 16}
orsize: {11, 14, 16}
Do you think this change adding more options would be a good thing?
The text was updated successfully, but these errors were encountered: