Hello Suraj, sur...@apache.org writes:
> Author: surajk > Date: Sat Sep 22 09:26:34 2018 > New Revision: 1841664 > > URL: http://svn.apache.org/viewvc?rev=1841664&view=rev > Log: > Fixed: Update regex used for validating credit cards. > (OFBIZ-9761) > Thanks Amit Gadaley for providing a patch for 16.11 > > Modified: > > ofbiz/branches/release16.11/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java > > Modified: > ofbiz/branches/release16.11/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java > URL: > http://svn.apache.org/viewvc/ofbiz/branches/release16.11/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java?rev=1841664&r1=1841663&r2=1841664&view=diff > ============================================================================== > --- > ofbiz/branches/release16.11/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java > (original) > +++ > ofbiz/branches/release16.11/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java > Sat Sep 22 09:26:34 2018 > @@ -1042,14 +1042,14 @@ public final class UtilValidate { > > /** Checks to see if the cc number is a valid Master Card number > * > - * @param cc a string representing a credit card number; Sample number: > 5500 0000 0000 0004(16 digits) > + * @param cc a string representing a credit card number; MasterCard > numbers either start with the numbers 51 through 55 or with the numbers 2221 > through 2720. All have 16 digits; Sample number: 5500 0000 0000 0004(16 > digits) > * @return true, if the credit card number is a valid MasterCard > number, false otherwise > */ Next time, please follow OFBiz standards by not adding lines longer than 120 Characters. Thanks. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37