Fix: bad regular expression
This commit is contained in:
parent
1ce5faff60
commit
cf92877374
@ -217,7 +217,7 @@ class CompanyBankAccount
|
||||
if (! empty($this->iban))
|
||||
{
|
||||
// If IBAN defined, we can know country of account from it
|
||||
if (preg_match("/^([a-z]{2}/i)",$this->iban,$reg)) return $reg[1];
|
||||
if (preg_match("/^[a-z]{2}/i",$this->iban,$reg)) return $reg[1];
|
||||
}
|
||||
|
||||
// We return country code
|
||||
|
||||
Loading…
Reference in New Issue
Block a user