From 539edb79683dcf4a571287baeb66687de2a22e94 Mon Sep 17 00:00:00 2001 From: Jon Stevens Date: Sun, 14 Jun 2015 12:42:16 -0700 Subject: [PATCH] match dinersclub from stripe lib https://github.com/stripe/jquery.payment/commit/1226d9636a1deaff00bff81aa555d73dcd31e83a --- src/cards.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}])