DNI validation fix

This commit is contained in:
Juan 2018-03-12 17:18:18 +01:00
parent ada0f40ece
commit 6b1ad875cb
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module.exports = function(fi, country) {
let validator = validators[country];
if (!validator)
return false;
return true;
return validator.regExp.test(fi)
&& (!validator.validate || validator.validate());