driesvints / vat-calculator

Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check if non-latin chars are in the Vatid before validation

drakakisgeo opened this issue · comments

If you pass a Vat like this CY 123123Μ to check if is a valid VIES vat id, you will see that is invalid. Problem is the letter at the end that is NON latin (But is sure look like one!).

Lost a few hours because of this, I though I should tell you that it would help a lot to throw an exception in such cases for better DX/UX

Thanks a lot for your amazing package