Skip to content

Commit cfd385a

Browse files
committed
feat: v1.1.4
1 parent b238026 commit cfd385a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "china_identification_card"
3-
version = "1.1.3"
3+
version = "1.1.4"
44
edition = "2024"
55
authors = ["root@ltpp.vip"]
66
license = "MIT"

src/chinese_id_card/const.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
/// Weight values used for Chinese ID card number validation.
2-
///
3-
/// Each digit in the ID number (except the last check digit) is multiplied by
4-
/// the corresponding weight in this array during validation.
52
pub(crate) const WEIGHTS: [i32; 17] = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
63
/// Check code characters used for Chinese ID card validation.
7-
///
8-
/// The last digit of the ID number is validated against these characters
9-
/// based on the calculated checksum.
104
pub(crate) const CHECK_CODES: [char; 11] = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];

0 commit comments

Comments
 (0)