Skip to content

Conversation

calina-c
Copy link
Contributor

@codingedward I added sometimes validation, different from nullable.
It seems there were some problems with comparing with "max", it would consider the size of the empty string as 0, so it would compare that to numerical values. I believe I corrected that, although you may have something else in mind, or maybe you think it is not necessary. Let me know and happy to help!

Fixes #27

Copy link
Owner

@codingedward codingedward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me thanks for contributing!!

Also, thanks for fixing the "max" issue, I agree it is better not to interpret an empty string as a numeric value.

I'll merge this and we can release a new version 👍

@codingedward codingedward merged commit 2c532a1 into codingedward:master Jan 21, 2021
@calina-c
Copy link
Contributor Author

Thank you! All the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Equivalent of "sometimes"

2 participants