8000 [Validator] Add Belarus IBAN format by Warxcell · Pull Request #24901 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Add Belarus IBAN format #24901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class IbanValidator extends ConstraintValidator
'BH' => 'BH\d{2}[A-Z]{4}[\dA-Z]{14}', // Bahrain
'BI' => 'BI\d{2}\d{12}', // Burundi
'BJ' => 'BJ\d{2}[A-Z]{1}\d{23}', // Benin
'BY' => 'BY\d{2}[\dA-Z]{4}\d{4}[\dA-Z]{16}', // Belarus - https://bank.codes/iban/structure/belarus/
'BL' => 'FR\d{2}\d{5}\d{5}[\dA-Z]{11}\d{2}', // Saint Barthelemy
'BR' => 'BR\d{2}\d{8}\d{5}\d{10}[A-Z][\dA-Z]', // Brazil
'CG' => 'CG\d{2}\d{23}', // Congo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function getValidIbans()
array('BE62 5100 0754 7061'), //Belgium
array('BA39 1290 0794 0102 8494'), //Bosnia and Herzegovina
array('BG80 BNBG 9661 1020 3456 78'), //Bulgaria
array('BY 13 NBRB 3600 900000002Z00AB00'), //Belarus
array('HR12 1001 0051 8630 0016 0'), //Croatia
array('CY17 0020 0128 0000 0012 0052 7600'), //Cyprus
array('CZ65 0800 0000 1920 0014 5399'), //Czech Republic
Expand Down Expand Up @@ -127,6 +128,7 @@ public function getValidIbans()
array('BR1800000000141455123924100C2'), // Brazil
array('VG96VPVG0000012345678901'), //British Virgin Islands
array('BF1030134020015400945000643'), //Burkina Faso
array('BY22NB23324232T78YR7823HR32U'), //Belarus
array('BI43201011067444'), //Burundi
array('CM2110003001000500000605306'), //Cameroon
array('CV64000300004547069110176'), //Cape Verde
Expand Down Expand Up @@ -183,6 +185,10 @@ public function getIbansWithInvalidFormat()
array('BA39 1290 0794 0102 8494 4'), //Bosnia and Herzegovina
array('BG80 BNBG 9661 1020 3456 7'), //Bulgaria
array('BG80 B2BG 9661 1020 3456 78'), //Bulgaria
array('BY 13 NBRB 3600 900000002Z00AB001'), //Belarus
array('BY 13 NBRB 3600 900000002Z00AB0'), //Belarus
array('BYRO NBRB 3600 900000002Z00AB0'), //Belarus
array('BY 13 3600 NBRB 900000002Z00AB05'), //Belarus
array('HR12 1001 0051 8630 0016 01'), //Croatia
array('CY17 0020 0128 0000 0012 0052 7600 1'), //Cyprus
array('CZ65 0800 0000 1920 0014 5399 1'), //Czech Republic
Expand Down Expand Up @@ -293,6 +299,7 @@ public function getIbansWithValidFormatButIncorrectChecksum()
array('BE62 5100 0754 7062'), //Belgium
array('BA39 1290 0794 0102 8495'), //Bosnia and Herzegovina
array('BG80 BNBG 9661 1020 3456 79'), //Bulgaria
array('BY90 NBRB 3600 900000002Z00AB00'), //Belarus
array('HR12 1001 0051 8630 0016 1'), //Croatia
array('CY17 0020 0128 0000 0012 0052 7601'), //Cyprus
array('CZ65 0800 0000 1920 0014 5398'), //Czech Republic
Expand Down
0