Skip to content

Commit

Permalink
Fix Safari support
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 19, 2016
1 parent 44402d3 commit 24c84e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions type.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

module.exports = function detectCardType(cardNumber) {
const card = cardNumber.toString().replace(/[^\d]/g, '');
const types = {
var card = cardNumber.toString().replace(/[^\d]/g, '');
var types = {
electron: /^(4026|417500|4405|4508|4844|4913|4917)\d+$/,
maestro: /^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\d+$/,
dankort: /^(5019)\d+$/,
Expand Down

0 comments on commit 24c84e4

Please sign in to comment.