{"size": 1034, "ext": "js", "max_stars_repo_path": "public/js/cljs-runtime/module$node_modules$validator$lib$isCreditCard.js", "max_stars_repo_name": "kitefishlabs/hello-blockstack-meet-cljs", "max_stars_repo_stars_event_min_datetime": "2020-06-02T00:47:00.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-02T00:47:00.000Z", "max_issues_repo_path": "public/js/cljs-runtime/module$node_modules$validator$lib$isCreditCard.js", "max_issues_repo_name": "kitefishlabs/hello-blockstack-meet-cljs", "max_issues_repo_issues_event_min_datetime": "2021-03-09T20:37:12.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-09T20:37:12.000Z", "max_forks_repo_path": "public/js/cljs-runtime/module$node_modules$validator$lib$isCreditCard.js", "max_forks_repo_name": "kitefishlabs/hello-blockstack-meet-cljs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 258.5, "max_line_length": 508, "alphanum_fraction": 0.7059961315}
shadow$provide.module$node_modules$validator$lib$isCreditCard=function(global,process,require,module,exports,shadow$shims){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=function(str){(0,_assertString2.default)(str);str=str.replace(/[- ]+/g,"");if(!creditCard.test(str))return!1;for(var sum=0,digit,shouldDouble=void 0,i=str.length-1;0<=i;i--)digit=str.substring(i,i+1),digit=parseInt(digit,10),shouldDouble?(digit*=2,sum=10<=digit?sum+(digit%10+1):sum+digit):sum+=digit,shouldDouble=
!shouldDouble;return!(0!==sum%10||!str)};var _assertString2=(global=require("module$node_modules$validator$lib$util$assertString"))&&global.__esModule?global:{default:global},creditCard=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|62[0-9]{14})$/;module.exports=exports["default"]}
//# sourceMappingURL=module$node_modules$validator$lib$isCreditCard.js.map
