diff --git a/htdocs/companybankaccount.class.php b/htdocs/companybankaccount.class.php index 1d753d2ab31..61e4eb29116 100644 --- a/htdocs/companybankaccount.class.php +++ b/htdocs/companybankaccount.class.php @@ -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