Closed raiseandfall closed 7 years ago
Yo!
could you add
if (input == null || input.length == 0) return null;
before the length check. all of the is<....>
methods shouldn't fail when there is no input (so it doesn't fail validation if you don't have a required validator on the field)
maybe also rename it to isMinLength
Totally. My bad, I literally just pushed this yesterday without even testing it
yolo!
literally living on the edge
Ok should be good now.
Hey @derekpitt,
I added isChecked for checkboxes: required wasn't enough, if you checked a required checkbox and then uncheck it, required wasn't throwing the error. Soooo isChecked made sense.
Although added the settings on the main validate.
Whenever you push that will be awesome because I can then update the repo path in package.json so deploy can happen (I believe it can't ssh through my fork now).
Thanks man
Aah yes indeed. Corrected in last commit.
Hey I added isLength validator to the schmilblick.