Skip to content

Instantly share code, notes, and snippets.

View bouxin's full-sized avatar
🎯
Focusing

Bouxin bouxin

🎯
Focusing
  • Brisbane, Australia
View GitHub Profile
@bouxin
bouxin / bankCard.js
Created February 2, 2020 16:16 — forked from yanweijia/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"
}, {