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

Added Czech bank account numbers #296

Closed petrprikryl closed 2 years ago

petrprikryl commented 2 years ago

https://github.com/arthurdejong/python-stdnum/issues/295

arthurdejong commented 2 years ago

Hi @petrprikryl,

Thanks for the PR. I've merged it as c5595c7 with a few small modifications. Some things could be simplified a bit and I've moved the zero padding to the compact() function. It strictly speaking doesn't make the number more compact but at least it ensures a consistent representation of the number (another approach would have been to trim leading zeros if possible).