Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

正则表达式不全面 #6

Open
zhaixinlong opened this issue Jan 17, 2019 · 0 comments
Open

正则表达式不全面 #6

zhaixinlong opened this issue Jan 17, 2019 · 0 comments

Comments

@zhaixinlong
Copy link
Contributor

/(^\d{18}$)/.test(idCard)
应该改为
/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant