taiwan_id

Function is_valid

Source
pub fn is_valid(id: &str) -> bool
Expand description

Check if the given string is a valid ID number.

ยงExamples

assert_eq!(true, taiwan_id::is_valid("A123456789"));
assert_eq!(false, taiwan_id::is_valid("A987654321"));