Skip to content

Commit df474ce

Browse files
refatorando ordem das bandeiras
1 parent 45d64b3 commit df474ce

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/creditcard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ var CREDIT_CARD_LIST = [{
104104
}, {
105105
name: 'Amex',
106106
regexpFull: '^3[47][0-9]{13}$'
107+
}, {
108+
name: 'Maestro',
109+
regexpFull: '^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$'
107110
}, {
108111
name: 'Aura',
109112
regexpFull: '^50[0-9]{14,17}$'
@@ -116,9 +119,6 @@ var CREDIT_CARD_LIST = [{
116119
}, {
117120
name: 'Visa',
118121
regexpFull: '^4[0-9]{12}(?:[0-9]{3})?$'
119-
}, {
120-
name: 'Maestro',
121-
regexpFull: '^(50|56|57|58|59|60|61|62|63|64|65|66|67|68|69)\\d{12,19}$'
122122
}];
123123

124124
var CreditCardList = function () {

dist/creditcard.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/creditCardList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const CREDIT_CARD_LIST = [
1414
}, {
1515
name: 'Amex',
1616
regexpFull: '^3[47][0-9]{13}$'
17+
}, {
18+
name: 'Maestro',
19+
regexpFull: '^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$'
1720
}, {
1821
name: 'Aura',
1922
regexpFull: '^50[0-9]{14,17}$'
@@ -26,9 +29,6 @@ const CREDIT_CARD_LIST = [
2629
}, {
2730
name: 'Visa',
2831
regexpFull: '^4[0-9]{12}(?:[0-9]{3})?$'
29-
}, {
30-
name: 'Maestro',
31-
regexpFull: '^(50|56|57|58|59|60|61|62|63|64|65|66|67|68|69)\\d{12,19}$'
3232
}
3333
];
3434

0 commit comments

Comments
 (0)