diff --git a/src/cards.js b/src/cards.js index 7b7d1e5..53940f1 100644 --- a/src/cards.js +++ b/src/cards.js @@ -16,8 +16,8 @@ angular.module('angularPayments') luhn: true }, { type: 'dinersclub', - pattern: /^(36|38|30[0-5])/, - format: defaultFormat, + pattern: /^3[0689]/, + format: /(\d{1,4})(\d{1,6})?(\d{1,4})?/, inputFormat: defaultInputFormat, length: [14], cvcLength: [3], @@ -119,4 +119,4 @@ angular.module('angularPayments') defaultInputFormat: function() { return defaultInputFormat;} } -}]) \ No newline at end of file +}])