DNI validation fix
This commit is contained in:
parent
ada0f40ece
commit
6b1ad875cb
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue