Skip to content
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

Objects don't passed in validator #75

Closed
anton-makarov opened this issue Apr 17, 2012 · 1 comment
Closed

Objects don't passed in validator #75

anton-makarov opened this issue Apr 17, 2012 · 1 comment

Comments

@anton-makarov
Copy link

This condition in Validator.prototype.check don't converts objects without length fild into empty strings:
this.str = (str == null || (isNaN(str) && str.length == undefined)) ? '' : str;
Is it really necessarry?

@chriso
Copy link
Collaborator

chriso commented Apr 18, 2012

I'm not sure what you're asking here. The condition isn't supposed to be an exhaustive way of converting non-strings into ''

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

No branches or pull requests

2 participants