UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

17 lines (14 loc) 267 B
module.exports = function() { /** * Validates the regular expression type. * * @param cb The callback function. */ this.main.regexp = function regexp(cb) { if(this.validates()) { this.required(); this.type(); } cb(); } }