Commit graph

13 commits

Author SHA1 Message Date
Henrique Moody
5a067faec7
Update "PostalCode" list
Updated the whole list according to the last version found on
geonames.org.

The script that I executed to generate the list is:

curl -L http://download.geonames.org/export/dump/countryInfo.txt |
  sed 's,\t,\;,g' |
  sort -u |
  cut -d ';' -f 1,15 |
  sed -E "/^#/d; /^[A-Z]{2}\;$/d; s,([A-Z]{2})\;(.+),'\1' => '/\2/'\,,g"

After generating the list I few changes had to be made since some of the
postal codes in the list were manually updated because they were not
correct.

This change was made because James Macon reported that "110231" was
not recognized as a valid Colombian postal code.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-29 22:30:50 +02:00
Axel Wargnier
4f3aa90d1f Fix postalCode for Portugal (PT) 2018-07-25 12:33:08 +02:00
Sebastian
8fc2484428
Fix postal code for The Netherlands
Postal code for NL allows for a space between the digits and the
letters.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2018-06-29 01:10:31 +01:00
Michał Prochowski
fa61315079
Czech and slovakia postal code patterns fix. 2017-01-26 15:37:37 +01:00
Henrique Moody
b85ed687f2 Merge branch '0.9' into 1.0 2015-11-25 17:59:49 -02:00
Tomasz Regdos
ecf4d5bb63 Fix PL postal code format 2015-11-25 17:44:59 -02:00
Henrique Moody
9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Henrique Moody
3fbc45d44f Add country code to postal code exception message 2015-09-24 00:49:25 -03:00
Henrique Moody
a3c945aa51 Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Henrique Moody
b8c76e3054 Fix some coding standards 2015-06-08 11:51:45 -03:00
Henrique Moody
acea4cd583 Update REGEX for postal code of "GB" country 2015-03-02 13:58:24 -03:00
Henrique Moody
29d3fcc1bd Required improvements on "PostalCode" rule
- Turn rule case insensitive
- Use default pattern for countries who doesn't have postal code
2015-02-05 13:59:50 -02:00
Henrique Moody
df8f10f4ea Create PostalCode rule
Thanks @xthiago (Thiago Rodrigues) for the initial idea.
2015-01-02 18:56:34 -02:00