Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Bouxin Lue bouxinLou

🎯
Focusing
  • Hangzhou
View GitHub Profile
@bouxinLou
bouxinLou / bankCard.js
Created Feb 2, 2020 — forked from yanweijia/bankCard.js
匹配国内主流银行卡的正则
View bankCard.js
let bankcardList = [{
bankName: "中国邮政储蓄银行",
bankCode: "PSBC",
patterns: [{
reg: /^(621096|621098|622150|622151|622181|622188|622199|955100|621095|620062|621285|621798|621799|621797|620529|621622|621599|621674|623218|623219)\d{13}$/g,
cardType: "DC"
}, {
reg: /^(62215049|62215050|62215051|62218850|62218851|62218849)\d{11}$/g,
cardType: "DC"
}, {