Commit ef0c8a0
committed
fix(MU): account number is numeric (12!n) per ISO 13616
The SWIFT IBAN Registry BBAN structure for Mauritius is 4!a2!n2!n12!n3!n3!a,
so the 12-character account number is digits only. It was declared as
CharacterType.c (alphanumeric), which the file's own comment already records
as 12!n, so an IBAN with a letter in the account-number field validated as
true even though it is structurally invalid (and its check digits are correct).
Narrow the account-number class to CharacterType.n. The genuine registry
example still validates.1 parent ae0a547 commit ef0c8a0
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
0 commit comments