Skip to content

Commit

Permalink
fixed Nicaraguan pattern + removed Somalia IBANs + removed debugging …
Browse files Browse the repository at this point in the history
…output
  • Loading branch information
drkameleon committed Nov 7, 2024
1 parent 9c1ba52 commit 385b891
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/validators/iban.art
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ define :ibanValidator is :validator [
MR: {/^(MR[0-9]{2})\d{23}$/} ; Mauritania
MT: {/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/} ; Malta
MU: {/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/} ; Mauritius
NI: {/^(NI[0-9]{2})[A-Z]{4}\d{24}$/} ; Nicaragua
NI: {/^(NI[0-9]{2})[A-Z]{4}\d{20}$/} ; Nicaragua
NL: {/^(NL[0-9]{2})[A-Z]{4}\d{10}$/} ; Netherlands
NO: {/^(NO[0-9]{2})\d{11}$/} ; Norway
OM: {/^(OM[0-9]{2})\d{19}$/} ; Oman
Expand All @@ -98,7 +98,6 @@ define :ibanValidator is :validator [
SI: {/^(SI[0-9]{2})\d{15}$/} ; Slovenia
SK: {/^(SK[0-9]{2})\d{20}$/} ; Slovakia
SM: {/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/}; San Marino
SO: {/^(SO[0-9]{2})\d{21}$/} ; Somalia
ST: {/^(ST[0-9]{2})\d{21}$/} ; São Tomé and Príncipe
SV: {/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/} ; El Salvador
TL: {/^(TL[0-9]{2})\d{19}$/} ; Timor-Leste
Expand Down Expand Up @@ -162,7 +161,6 @@ define :ibanValidator is :validator [
return false

; Validate checksum
print [str \validateChecksum iban]
return \validateChecksum iban
]

Expand Down Expand Up @@ -248,7 +246,6 @@ define :ibanValidator is :validator [
"SI56263300012039086" ; Slovenia
"SK3112000000198742637541" ; Slovakia
"SM86U0322509800000000270100" ; San Marino
"SO061000001123123456789" ; Somalia
"ST23000200000289355710148" ; São Tomé and Príncipe
"SV62CENR00000000000000700025" ; El Salvador
"TL380080012345678910157" ; Timor-Leste
Expand Down

0 comments on commit 385b891

Please sign in to comment.