This commit is contained in:
383514580 2021-09-27 21:01:10 +08:00
parent ec9371016a
commit 9873f5db00
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ vscode应用商店中搜索"**any-rule**".
### 身份证号, 支持1/2代(15位/18位数字) ### 身份证号, 支持1/2代(15位/18位数字)
```javascript ```javascript
/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/ /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/
``` ```
### 护照(包含香港、澳门) ### 护照(包含香港、澳门)