mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: 根据微信支付支持的银行卡长度更改"银行卡号"正则(#8)
This commit is contained in:
parent
9d5e42f33c
commit
dd307fcca4
@ -115,9 +115,9 @@ https://any86.github.io/any-rule/
|
||||
/(?:^[1-9]([0-9]+)?(?:\.[0-9]{1,2})?$)|(?:^(?:0){1}$)|(?:^[0-9]\.[0-9](?:[0-9])?$)/
|
||||
```
|
||||
|
||||
### 银行卡号(16或19位)
|
||||
### 银行卡号(10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1))
|
||||
```javascript
|
||||
/^(?:[1-9]{1})(?:\d{15}|\d{18})$/
|
||||
/^[1-9]\d{9,29}$/
|
||||
```
|
||||
|
||||
### 中文姓名
|
||||
|
@ -3,7 +3,7 @@
|
||||
"publisher": "russell",
|
||||
"displayName": "any-rule",
|
||||
"description": "你要的\"正则\"都在这!",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"engines": {
|
||||
"vscode": "^1.12.0"
|
||||
},
|
||||
@ -162,7 +162,7 @@
|
||||
},
|
||||
{
|
||||
"command": "extension.rule20",
|
||||
"title": "zz: 银行卡号(16或19位)"
|
||||
"title": "zz: 银行卡号(10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1))"
|
||||
},
|
||||
{
|
||||
"command": "extension.rule21",
|
||||
|
@ -104,9 +104,9 @@ module.exports = [
|
||||
examples: [0.99, 8.99, 666]
|
||||
},
|
||||
{
|
||||
title: '银行卡号(16或19位)',
|
||||
rule: /^(?:[1-9]{1})(?:\d{15}|\d{18})$/,
|
||||
examples: [6222026006705354217]
|
||||
title: '银行卡号(10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1))',
|
||||
rule: /^[1-9]\d{9,29}$/,
|
||||
examples: [6234567890, 6222026006705354217]
|
||||
},
|
||||
{
|
||||
title: '中文姓名',
|
||||
|
Loading…
x
Reference in New Issue
Block a user