Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: phone reg
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Dec 13, 2023
1 parent f0b6f3a commit 19c4162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const formRule = {
msg: '请输入正确的身份证号',
},
phone: {
reg: /^[1][3,4,5,7,8][0-9]{9}$/,
reg: /^1(3\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/,
msg: '请输入正确的手机号',
},
};
Expand Down

0 comments on commit 19c4162

Please sign in to comment.