Skip to content

Commit

Permalink
change README
Browse files Browse the repository at this point in the history
  • Loading branch information
neehow committed Apr 11, 2019
1 parent ca881af commit caec6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# is-valid-id-card
一个校验身份证号是否符合规则的方法。(A function to test if a Chinese ID card is valid.)
校验身份证是否符合标准
一个校验身份证号是否符合规则的方法。(A function to test if a Chinese ID card number is valid.)
校验规则有点复杂,但是代码写的尽量简洁。代码中用到了Array的reduce和map方法,使用时需要浏览器支持这些方法。
参考国家标准:[GB 11643-1999](http://www.gb688.cn/bzgk/gb/newGbInfo?hcno=080D6FBF2BB468F9007657F26D60013E),只有18位身份证才符合标准
参考了此文章:https://blog.csdn.net/qq_41589580/article/details/81040772
暂时未做每月不同天数及闰年的校验,如生日是2月31号也返回true。今后有空可能会加上此校验。
Expand Down

0 comments on commit caec6c4

Please sign in to comment.