Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added Mauritania (MR)

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@307351 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 9d0a72d35765ef55458b3a88bb3137a7dea303b3 1 parent a85ef4b
Hartmut Holzgraefe authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 Validate/Finance/IBAN.php
7 Validate/Finance/IBAN.php
@@ -113,6 +113,7 @@ function _getCountrycodeCountryname()
113 113 'MC' => 'Monaco',
114 114 'ME' => 'Montenegro',
115 115 'MK' => 'Macedonia',
  116 + 'MR' => 'Mauritania',
116 117 'MT' => 'Malta',
117 118 'MU' => 'Mauritius',
118 119 'NL' => 'The Netherlands',
@@ -177,6 +178,7 @@ function _getCountrycodeIBANLength()
177 178 'MC' => 27,
178 179 'ME' => 22,
179 180 'MK' => 19,
  181 + 'MR' => 27,
180 182 'MT' => 31,
181 183 'MU' => 30,
182 184 'NL' => 18,
@@ -256,6 +258,8 @@ function _getCountrycodeBankcode()
256 258 'MC' => array('start' => 4, 'length' => 10),
257 259 'ME' => array('start' => 4, 'length' => 3),
258 260 'MK' => array('start' => 4, 'length' => 3),
  261 + //MR: first 5 chars bankcode, last 5 chars branch
  262 + 'M$' => array('start' => 4, 'length' => 10),
259 263 //MT: first 4 chars bankcode, last 5 chars bank sort code
260 264 'MT' => array('start' => 4, 'length' => 9),
261 265 //MU: first 6 chars bankcode, last 2 chars branch
@@ -336,6 +340,8 @@ function _getCountrycodeBankaccount()
336 340 'ME' => array('start' => 7, 'length' => 15),
337 341 //MK: followed by 2 chars (checksum)
338 342 'MK' => array('start' => 7, 'length' => 10),
  343 + //MR: followed by 2 chars (checksum?)
  344 + 'MR' => array('start' => 14, 'length' => 13),
339 345 'MT' => array('start' => 13, 'length' => 18),
340 346 'MU' => array('start' => 12, 'length' => 18),
341 347 'NL' => array('start' => 8, 'length' => 10),
@@ -406,6 +412,7 @@ function _getCountrycodeRegex()
406 412 'MC' => '/^MC[0-9]{2}[0-9]{10}[A-Z0-9]{11}[0-9]{2}$/',
407 413 'ME' => '/^ME[0-9]{2}[0-9]{3}[0-9]{15}$/',
408 414 'MK' => '/^MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}$/',
  415 + 'MR' => '/^MR[0-9]{2}[0-9]{10}[0-9]{13}$/',
409 416 'MT' => '/^MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}$/',
410 417 'MU' => '/^MU[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{15}[A-Z]{3}$/',
411 418 'NL' => '/^NL[0-9]{2}[A-Z]{4}[0-9]{10}$/',

0 comments on commit 9d0a72d

Please sign in to comment.
Something went wrong with that request. Please try again.