Add attr param to custom validator, closes #200
This commit is contained in:
parent
5b33c2a0f1
commit
9f0dfeb58a
|
@ -245,7 +245,7 @@ function validateFormat(attr, conf, err) {
|
|||
* Custom validator
|
||||
*/
|
||||
function validateCustom(attr, conf, err, done) {
|
||||
conf.customValidator.call(this, err, done);
|
||||
conf.customValidator.call(this, err, attr, done);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue