arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
495 stars 205 forks source link

Mexico mx.curp validate function validate_check_digits parameter not used. #285

Closed guyskk closed 2 years ago

guyskk commented 2 years ago

It's default to False, but actually always validate check digits.
https://github.com/arthurdejong/python-stdnum/blob/master/stdnum/mx/curp.py#L112

Expect it default to True, and skip validate check digits if assigned False.

arthurdejong commented 2 years ago

Thanks for pointing this out, fixed in 02dec52.