Fix: bad regular expression

This commit is contained in:
Regis Houssin 2009-12-21 14:09:58 +00:00
parent 1ce5faff60
commit cf92877374

View File

@ -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