We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running my custom 'validState' validation, the param 'str' comes out as undefined.
https://gist.github.com/2004334
Any idea?
The text was updated successfully, but these errors were encountered:
When the methods are chained together you can access the string with this.str rather than as a parameter
this.str
Validator.prototype.validState = function () { if (states.indexOf(this.str) === -1) { this.error(this.msg || 'Invalid state'); } return this; } //then check('AK').validState();
Sorry, something went wrong.
No branches or pull requests
When running my custom 'validState' validation, the param 'str' comes out as undefined.
https://gist.github.com/2004334
Any idea?
The text was updated successfully, but these errors were encountered: