From e3b49d33e9c2e8ba75ce3d6fdef0da27d529c72c Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期四, 14 十二月 2023 10:43:00 +0800 Subject: [PATCH] 样式调整 --- src/utils/validate.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/utils/validate.js b/src/utils/validate.js index 9a72225..e78759b 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -108,3 +108,8 @@ } return Array.isArray(arg) } + +export function verifyIdCard(val) { + var regex = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; + return regex.test(val) +} \ No newline at end of file -- Gitblit v1.9.2