[Validator] Fix Costa Rica IBAN format
This commit is contained in:
parent
85f7cc8d0a
commit
b9b5e18f8b
@ -57,7 +57,7 @@ class IbanValidator extends ConstraintValidator
|
|||||||
'CH' => 'CH\d{2}\d{5}[\dA-Z]{12}', // Switzerland
|
'CH' => 'CH\d{2}\d{5}[\dA-Z]{12}', // Switzerland
|
||||||
'CI' => 'CI\d{2}[A-Z]{1}\d{23}', // Ivory Coast
|
'CI' => 'CI\d{2}[A-Z]{1}\d{23}', // Ivory Coast
|
||||||
'CM' => 'CM\d{2}\d{23}', // Cameron
|
'CM' => 'CM\d{2}\d{23}', // Cameron
|
||||||
'CR' => 'CR\d{2}\d{3}\d{14}', // Costa Rica
|
'CR' => 'CR\d{2}0\d{3}\d{14}', // Costa Rica
|
||||||
'CV' => 'CV\d{2}\d{21}', // Cape Verde
|
'CV' => 'CV\d{2}\d{21}', // Cape Verde
|
||||||
'CY' => 'CY\d{2}\d{3}\d{5}[\dA-Z]{16}', // Cyprus
|
'CY' => 'CY\d{2}\d{3}\d{5}[\dA-Z]{16}', // Cyprus
|
||||||
'CZ' => 'CZ\d{2}\d{20}', // Czech Republic
|
'CZ' => 'CZ\d{2}\d{20}', // Czech Republic
|
||||||
|
@ -132,7 +132,7 @@ class IbanValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
array('CV64000300004547069110176'), //Cape Verde
|
array('CV64000300004547069110176'), //Cape Verde
|
||||||
array('FR7630007000110009970004942'), //Central African Republic
|
array('FR7630007000110009970004942'), //Central African Republic
|
||||||
array('CG5230011000202151234567890'), //Congo
|
array('CG5230011000202151234567890'), //Congo
|
||||||
array('CR0515202001026284066'), //Costa Rica
|
array('CR05015202001026284066'), //Costa Rica
|
||||||
array('DO28BAGR00000001212453611324'), //Dominican Republic
|
array('DO28BAGR00000001212453611324'), //Dominican Republic
|
||||||
array('GT82TRAJ01020000001210029690'), //Guatemala
|
array('GT82TRAJ01020000001210029690'), //Guatemala
|
||||||
array('IR580540105180021273113007'), //Iran
|
array('IR580540105180021273113007'), //Iran
|
||||||
@ -246,6 +246,7 @@ class IbanValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
array('FR76300070001100099700049421'), //Central African Republic
|
array('FR76300070001100099700049421'), //Central African Republic
|
||||||
array('CG52300110002021512345678901'), //Congo
|
array('CG52300110002021512345678901'), //Congo
|
||||||
array('CR05152020010262840661'), //Costa Rica
|
array('CR05152020010262840661'), //Costa Rica
|
||||||
|
array('CR0515202001026284066'), //Costa Rica
|
||||||
array('DO28BAGR000000012124536113241'), //Dominican Republic
|
array('DO28BAGR000000012124536113241'), //Dominican Republic
|
||||||
array('GT82TRAJ010200000012100296901'), //Guatemala
|
array('GT82TRAJ010200000012100296901'), //Guatemala
|
||||||
array('IR5805401051800212731130071'), //Iran
|
array('IR5805401051800212731130071'), //Iran
|
||||||
@ -355,7 +356,7 @@ class IbanValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
array('CV64000300004547069110177'), //Cape Verde
|
array('CV64000300004547069110177'), //Cape Verde
|
||||||
array('FR7630007000110009970004943'), //Central African Republic
|
array('FR7630007000110009970004943'), //Central African Republic
|
||||||
array('CG5230011000202151234567891'), //Congo
|
array('CG5230011000202151234567891'), //Congo
|
||||||
array('CR0515202001026284067'), //Costa Rica
|
array('CR96042332432534543564'), //Costa Rica
|
||||||
array('DO28BAGR00000001212453611325'), //Dominican Republic
|
array('DO28BAGR00000001212453611325'), //Dominican Republic
|
||||||
array('GT82TRAJ01020000001210029691'), //Guatemala
|
array('GT82TRAJ01020000001210029691'), //Guatemala
|
||||||
array('IR580540105180021273113008'), //Iran
|
array('IR580540105180021273113008'), //Iran
|
||||||
|
Reference in New Issue
Block a user