improve HuBankAccountValidator.php, so it accepts also 16 long numbers
This commit is contained in:
parent
997a53e534
commit
f72b4efc49
@ -10,7 +10,7 @@ class HuBankAccountValidator
|
||||
return false;
|
||||
}
|
||||
$stripedBankAccount = preg_replace('/\s+/', '', $bankAccount);
|
||||
if ( strlen($stripedBankAccount) != 24){
|
||||
if ( !(strlen($stripedBankAccount) == 24 || strlen($stripedBankAccount) == 16)){
|
||||
return false;
|
||||
}
|
||||
$arrayOfNumbers = str_split($stripedBankAccount);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user