commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1760442 - in /commons/proper/validator/trunk/src: changes/changes.xml main/java/org/apache/commons/validator/routines/IBANValidator.java test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
Date Mon, 12 Sep 2016 19:48:23 GMT
Author: sebb
Date: Mon Sep 12 19:48:23 2016
New Revision: 1760442

URL: http://svn.apache.org/viewvc?rev=1760442&view=rev
Log:
VALIDATOR-405 IBANValidator - Costa Rica entry has been updated in SWIFT docs

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java

Modified: commons/proper/validator/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/changes/changes.xml?rev=1760442&r1=1760441&r2=1760442&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/changes/changes.xml (original)
+++ commons/proper/validator/trunk/src/changes/changes.xml Mon Sep 12 19:48:23 2016
@@ -65,6 +65,9 @@ The <action> type attribute can be add,u
 
   <body>
   <release version="1.5.2" date="TBA" description="">
+    <action issue="VALIDATOR-405" type="fix" dev="sebb">
+    IBANValidator - Costa Rica entry has been updated in SWIFT docs
+    </action>
     <action issue="VALIDATOR-401" type="fix" dev="britter">
     IBANValidator fails for Seychelles and Ukraine
     </action>

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/IBANValidator.java?rev=1760442&r1=1760441&r2=1760442&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/IBANValidator.java
Mon Sep 12 19:48:23 2016
@@ -103,7 +103,7 @@ public class IBANValidator {
             new Validator("BA", 20, "BA\\d{18}"                             ), // Bosnia
and Herzegovina
             new Validator("BR", 29, "BR\\d{25}[A-Z]{1}[A-Z0-9]{1}"          ), // Brazil
             new Validator("BG", 22, "BG\\d{2}[A-Z]{4}\\d{6}[A-Z0-9]{8}"     ), // Bulgaria
-            new Validator("CR", 21, "CR\\d{19}"                             ), // Costa Rica
+            new Validator("CR", 22, "CR\\d{20}"                             ), // Costa Rica
             new Validator("HR", 21, "HR\\d{19}"                             ), // Croatia
             new Validator("CY", 28, "CY\\d{10}[A-Z0-9]{16}"                 ), // Cyprus
             new Validator("CZ", 24, "CZ\\d{22}"                             ), // Czech Republic

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java?rev=1760442&r1=1760441&r2=1760442&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java
Mon Sep 12 19:48:23 2016
@@ -46,7 +46,7 @@ public class IBANValidatorTest {
             "BR1800000000141455123924100C2",
             "BR9700360305000010009795493P1",
             "CH9300762011623852957",
-            "CR0515202001026284066",
+            "CR05015202001026284066",
             "CY17002001280000001200527600",
             "CZ6508000000192000145399",
             "CZ9455000000001011038930",
@@ -75,7 +75,7 @@ public class IBANValidatorTest {
             "KW81CBKU0000000000001234560101",
             "KZ86125KZT5004100100",
             "LB62099900000001001901229114",
-            "LC55HEMM000100010012001200023015", // the SWIFT docs have LC62...
+            "LC55HEMM000100010012001200023015",
             "LI21088100002324013AA",
             "LT121000011101001000",
             "LU280019400644750000",



Mime
View raw message