Commit Graph

6 Commits

Author SHA1 Message Date
Warren White
13b859e357 Additional: vinUS validation fails on valid vin numbers (#2460)
* Removed === compare, changed to ==
Compare by value and type (===) does not work for this algorithm, as both cd and cdv can be either types at the same time.
By comparing by value only (==) cd and cdv can be either integer or string, as a string number will be converted to a number reqardless of type.

* Rewrote forloop, removed nested forloop

* Additional: fixed spacing issues

* Additional: Add vinUS.js validation test cases

Test cases include default test with 17 one's, and additional US and Canada VIN

* Additional: add two more test casses for vinUS

* Additional: removed text license number, should be VIN
2022-12-01 10:50:24 +00:00
João Issamu Francisco
fcf782e2c7 Additional: Add Brazillian CNH number (Carteira Nacional de Habilitacao) (#2234) 2018-11-05 20:27:34 +00:00
Cory Silva
e1f99a76ac Additional: Add ABA Routing Number Validation (#2216) 2018-10-10 10:19:45 +01:00
Wang Sen
2732ddb6fe Additional: add netmask validation method (#1955)
Add a method to validate netmask.

Invalidate-pull-request: #1831 #Add test cases
Signed-off-by: Wang Sen <wangsen@linux.vnet.ibm.com>
2017-04-18 12:30:18 +02:00
Brahim Arkni
8fe4a90185 Tests: Upgrade QUnit to 2.0.
Closes #1777. #1681.
2016-07-22 17:56:18 +02:00
Brahim Arkni
f0144b56b9 Core: Split out creditcard method
As mentioned by Jörn in #1506
2015-10-21 22:48:06 +01:00