Allow whitespace in Iban #2776

Closed
wants to merge 1 commit into
from
@@ -226,7 +226,7 @@ public function isValid($value)
return false;
}
- $value = strtoupper($value);
+ $value = str_replace(' ', '', strtoupper($value));
$this->setValue($value);
$countryCode = $this->getCountryCode();
@@ -25,7 +25,7 @@ public function ibanDataProvider()
return array(
array('AD1200012030200359100100', true),
array('AT611904300234573201', true),
- array('AT61 1904 3002 3457 3201', false),
+ array('AT61 1904 3002 3457 3201', true),
array('AD1200012030200354100100', false),
array('AL47212110090000000235698741', true),