commerceguys / tax

A PHP 5.5+ tax library.
MIT License
275 stars 39 forks source link

Switch postcode regexes for Azores and Madeira #63

Closed dmnc closed 5 years ago

dmnc commented 5 years ago

It looks like there is a bug where the Portugal postcode regexes for Madeira and The Azores are the wrong way round.

Reference the list here: https://en.wikipedia.org/wiki/List_of_postal_codes_in_Portugal#Ilha_da_Madeira

The Madeira ones match with the /(9)[0-4]... version and the Azores with /(9)[5-9]... one. The PR simply switches them.

There is also an issue that we are missing a pt_20_vat.json but I will address that in another PR.

bojanz commented 5 years ago

Thanks!

dmnc commented 5 years ago

@bojanz thanks for merging. Any chance you could drop a release so that I can pull this in as stable with composer please?