Skip to content

Commit

Permalink
Merge pull request #18 from LeoLiu1209/master
Browse files Browse the repository at this point in the history
Added jcb credit cards support
  • Loading branch information
muhammed committed Nov 3, 2019
2 parents b0811ed + 2e5250f commit a581b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file added src/assets/images/jcb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/Card.vue
Expand Up @@ -201,6 +201,9 @@ export default {
re = new RegExp('^3(?:0([0-5]|9)|[689]\\d?)\\d{0,11}')
if (number.match(re) != null) return 'dinersclub'
re = new RegExp('^35(2[89]|[3-8])')
if (number.match(re) != null) return 'jcb'
return '' // default type
},
currentCardBackground () {
Expand Down

0 comments on commit a581b8d

Please sign in to comment.