Cimpress-MCP / postal-codes-js

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

Reorganize country/format definitions #5

Open istanishev opened 8 years ago

istanishev commented 8 years ago
drzraf commented 5 years ago

I'd advise that a refresh happens from http://download.geonames.org/export/dump/countryInfo.txt For example "AR" regexp is wrong in this repository but correct in geonames.

tomhooijenga commented 3 years ago

Is this still wanted? I'd be able to take a shot at this. This package is great, but the mappings are due for some refactoring. There are now three locations to add formats. My last PR showed that this doesn't always go right.

Other things to take in consideration

Also pinging @ozankaya because they seem to be in charge now

ozankaya commented 3 years ago

Yes, this refactoring is still required. Your list above looks good to me. Maybe we can skip TypeScript for now. We have declarations file for TypeScript support.