Skip to content

Commit

Permalink
feat: add laser. change maestro regex
Browse files Browse the repository at this point in the history
  • Loading branch information
guastallaigor committed Jan 14, 2021
1 parent be9abd5 commit d2994de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added src/assets/images/laser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/VuePaycard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ export default {
if (number.match(/^9792/)) return 'troy'
if (number.match(/^3(0[0-5]|[68]\d)\d{11,16}/)) return 'dinersclub'
if (number.match(/^35(2[89]|[3-8])/)) return 'jcb'
if (number.match(/^(?:5[06789]\d\d|(?!6011[0234])(?!60117[4789])(?!60118[6789])(?!60119)(?!64[456789])(?!65)6\d{3})\d{8,15}$/)) return 'maestro'
if (number.match(/^(6304|6706|6709|6771)[0-9]{12,15}$/)) return 'laser'
if (number.match(/(?:5[0678]\d\d|6304|6390|67\d\d)\d{8,15}$/)) return 'maestro'
if (number.match(/^1\d{14}$/)) return 'uatp'
return ''
Expand Down

0 comments on commit d2994de

Please sign in to comment.