Open lijiachang opened 1 year ago
Example: validate id: M162773050
from idnumbers.nationalid import TWN
id_number = "M162773050"
print(id_number, ' -> ', TWN.NationalID.validate(id_number))
result is: M162773050 -> False
In fact, this ID is correct
Describe the bug TWN.NationalID.checksum method may be return 10
weighted_modulus_digit :The function may actually return a 10 instead of being in the range 0~9