-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ignoreWhitespace
in presence validator
#173
Introduce ignoreWhitespace
in presence validator
#173
Conversation
I feel like this should be a configuration option for the presence validator. Something like
or
Since this would change existing functionality for people already using it today. |
Ember.isPresent
in presence validatorignoreBlank
in presence validator
Makes sense, thanks. I've updated the commit. CI is failing though, but it does not look like my change broke it, so not sure what can I do |
CI is green now! |
@krasnoukhov thank you for this feature! I think I prefer "ignoreWhitespace" more just because it's a little more intuitive, but I'm not sure if that's more misleading than ignoreBlank. May I ask why you chose ignoreBlank? Besides that, if you can just add the option details in the docs (see addon/validators/format), I believe I can just go ahead and merge this baby 😸 |
@offirgolan No problem! Well |
ignoreBlank
in presence validatorignoreWhitespace
in presence validator
Oh okay I was just curious. After some thought, I believe ignoreWhitespace On Thursday, April 21, 2016, Dmitry Krasnoukhov [email protected]
Thanks, |
Sure, I don't mind at all, maybe you'll think of even better name for that! Thanks and have a good rest of the week. |
LGTM |
This allows using a validator for a case when value should not consist only of space(s).