chriso/node-validator — Issue #48: isCreditCard can't replace space
Author: minehp
Created: 2011-11-25 03:13:52+00:00
State: open

if credit card number have space, isCreditCard can't replace it....
i check the code ( validator.js line 299 ), there is line like this...

this.str.replace(/[^0-9]+/g, ''); //remove all dashes, spaces, etc.

but this line doesn't work...