Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f3b892d

Browse filesBrowse files
bug #48746 [Validator] Fix IBAN format for Tunisia and Mauritania (smelesh)
This PR was merged into the 5.4 branch. Discussion ---------- [Validator] Fix IBAN format for Tunisia and Mauritania | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | n/a | License | MIT | Doc PR | n/a IBAN checksum (2 digits after country code) must not be hardcoded since it's calculated based on the rest of the IBAN characters. Commits ------- b72f013 [Validator] Fix IBAN format for Tunisia and Mauritania
2 parents 4e26f68 + b72f013 commit f3b892d
Copy full SHA for f3b892d

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Validator/Constraints/IbanValidator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/IbanValidator.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class IbanValidator extends ConstraintValidator
102102
'MK' => 'MK\d{2}\d{3}[\dA-Z]{10}\d{2}', // Macedonia, Former Yugoslav Republic of
103103
'ML' => 'ML\d{2}[A-Z]{1}\d{23}', // Mali
104104
'MQ' => 'FR\d{2}\d{5}\d{5}[\dA-Z]{11}\d{2}', // Martinique
105-
'MR' => 'MR13\d{5}\d{5}\d{11}\d{2}', // Mauritania
105+
'MR' => 'MR\d{2}\d{5}\d{5}\d{11}\d{2}', // Mauritania
106106
'MT' => 'MT\d{2}[A-Z]{4}\d{5}[\dA-Z]{18}', // Malta
107107
'MU' => 'MU\d{2}[A-Z]{4}\d{2}\d{2}\d{12}\d{3}[A-Z]{3}', // Mauritius
108108
'MZ' => 'MZ\d{2}\d{21}', // Mozambique
@@ -127,7 +127,7 @@ class IbanValidator extends ConstraintValidator
127127
'SN' => 'SN\d{2}[A-Z]{1}\d{23}', // Senegal
128128
'TF' => 'FR\d{2}\d{5}\d{5}[\dA-Z]{11}\d{2}', // French Southern Territories
129129
'TL' => 'TL\d{2}\d{3}\d{14}\d{2}', // Timor-Leste
130-
'TN' => 'TN59\d{2}\d{3}\d{13}\d{2}', // Tunisia
130+
'TN' => 'TN\d{2}\d{2}\d{3}\d{13}\d{2}', // Tunisia
131131
'TR' => 'TR\d{2}\d{5}[\dA-Z]{1}[\dA-Z]{16}', // Turkey
132132
'UA' => 'UA\d{2}\d{6}[\dA-Z]{19}', // Ukraine
133133
'VA' => 'VA\d{2}\d{3}\d{15}', // Vatican City State

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.