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
498 stars 206 forks source link

Optional parameter for allowing temporary range individual numbers #191

Closed lekksi closed 4 years ago

lekksi commented 4 years ago

There are valid use cases for the temporary range individual numbers - this PR adds validating temporary range individual numbers possible with an optional parameter.

The validate function raises InvalidComponent for temporary range individual numbers by default as before.

arthurdejong commented 4 years ago

Thanks for the improvement. I've merged it as 353db92.