Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Troy card detection #719

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dist/cleave-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ return /******/ (function(modules) { // webpackBootstrap
visa: [4, 4, 4, 4],
mir: [4, 4, 4, 4],
unionPay: [4, 4, 4, 4],
troy: [4, 4, 4, 4],
general: [4, 4, 4, 4]
},

Expand Down Expand Up @@ -1304,7 +1305,10 @@ return /******/ (function(modules) { // webpackBootstrap
visa: /^4\d{0,15}/,

// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
unionPay: /^(62|81)\d{0,14}/,

// starts with 9792; 16 digits
troy: /^9792\d{0,12}/
},

getStrictBlocks: function (block) {
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-angular.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions dist/cleave-esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

var NumeralFormatter = function (numeralDecimalMark,
numeralIntegerScale,
Expand Down Expand Up @@ -615,6 +615,7 @@ var CreditCardDetector = {
visa: [4, 4, 4, 4],
mir: [4, 4, 4, 4],
unionPay: [4, 4, 4, 4],
troy: [4, 4, 4, 4],
general: [4, 4, 4, 4]
},

Expand Down Expand Up @@ -656,7 +657,10 @@ var CreditCardDetector = {
visa: /^4\d{0,15}/,

// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
unionPay: /^(62|81)\d{0,14}/,

// starts with 9792; 16 digits
troy: /^9792\d{0,12}/
},

getStrictBlocks: function (block) {
Expand Down
2 changes: 1 addition & 1 deletion dist/cleave-esm.min.js

Large diffs are not rendered by default.

Loading