Cimpress-MCP / postal-codes-js

Provide postal code validation for javascript
Apache License 2.0
43 stars 36 forks source link

Update PT codes #55

Closed nachogarcia closed 4 years ago

nachogarcia commented 4 years ago

As per https://www.europacco.com/en/find-zip/portugal?country=pt

Portuguese postal codes consist of eight characters: four numbers followed by a hyphen and three extra digits. Portuguese zip code is called: Codigo Postal. By 2014, the CAP was four digits only. This year, three figures were introduced to delimit blocks of neighborhood roads and small towns, which all share a distribution center.

We have an eccomerce and 4 digit codes seem not to be useful anymore.

ozankaya commented 4 years ago

Can you please bump the minor version in package.json and package-lock.json so that the new version is auto-published to npm? Also can you please remove all the whitespace changes in this CR?

nachogarcia commented 4 years ago

I think it would be easier for contributors to have a common code style. Right now the project mixes 4 spaces, 2 spaces, and tabs. I added the .editorconfig so following contributors know what code style adhere to, but if you prefer it I can just make the desired changes and leave it like that.