Skip to content

Commit

Permalink
update validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljelonek committed May 26, 2023
1 parent f55e03d commit ca24aa4
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion i18naddress/data/all.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/bh.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"BH": {"fmt": "%N%n%O%n%A%n%C %Z", "id": "data/BH", "key": "BH", "name": "BAHRAIN", "zip": "(?:\\d|1[0-2])\\d{2}", "zipex": "317"}}
{"BH": {"fmt": "%N%n%O%n%A%n%C %Z", "id": "data/BH", "key": "BH", "name": "BAHRAIN", "zip": "(?:^|\\b)(?:1[0-2]|[1-9])\\d{2}(?:$|\\b)", "zipex": "317"}}
2 changes: 1 addition & 1 deletion i18naddress/data/cl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/cn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/co.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"CO": {"fmt": "%N%n%O%n%A%n%C, %S, %Z", "id": "data/CO", "key": "CO", "name": "COLOMBIA", "posturl": "http://www.codigopostal.gov.co/", "require": "AS", "state_name_type": "department", "zip": "\\d{6}", "zipex": "111221,130001,760011"}}
{"CO": {"fmt": "%N%n%O%n%A%n%D%n%C, %S, %Z", "id": "data/CO", "key": "CO", "lang": "es", "languages": "es", "name": "COLOMBIA", "posturl": "http://www.codigopostal.gov.co/", "require": "AS", "state_name_type": "department", "sub_isoids": "AMA~ANT~ARA~ATL~DC~BOL~BOY~CAL~CAQ~CAS~CAU~CES~CHO~COR~CUN~GUA~GUV~HUI~LAG~MAG~MET~NAR~NSA~PUT~QUI~RIS~SAP~SAN~SUC~TOL~VAC~VAU~VID", "sub_keys": "Amazonas~Antioquia~Arauca~Atlántico~Bogotá~Bolívar~Boyacá~Caldas~Caquetá~Casanare~Cauca~Cesar~Chocó~Córdoba~Cundinamarca~Guainía~Guaviare~Huila~La Guajira~Magdalena~Meta~Nariño~Norte de Santander~Putumayo~Quindío~Risaralda~San Andrés y Providencia~Santander~Sucre~Tolima~Valle del Cauca~Vaupés~Vichada", "zip": "\\d{6}", "zipex": "111221,130001,760011"}, "CO/Amazonas": {"id": "data/CO/Amazonas", "isoid": "AMA", "key": "Amazonas", "lang": "es"}, "CO/Antioquia": {"id": "data/CO/Antioquia", "isoid": "ANT", "key": "Antioquia", "lang": "es"}, "CO/Arauca": {"id": "data/CO/Arauca", "isoid": "ARA", "key": "Arauca", "lang": "es"}, "CO/Atlántico": {"id": "data/CO/Atlántico", "isoid": "ATL", "key": "Atlántico", "lang": "es"}, "CO/Bogotá": {"id": "data/CO/Bogotá", "isoid": "DC", "key": "Bogotá", "lang": "es"}, "CO/Bolívar": {"id": "data/CO/Bolívar", "isoid": "BOL", "key": "Bolívar", "lang": "es"}, "CO/Boyacá": {"id": "data/CO/Boyacá", "isoid": "BOY", "key": "Boyacá", "lang": "es"}, "CO/Caldas": {"id": "data/CO/Caldas", "isoid": "CAL", "key": "Caldas", "lang": "es"}, "CO/Caquetá": {"id": "data/CO/Caquetá", "isoid": "CAQ", "key": "Caquetá", "lang": "es"}, "CO/Casanare": {"id": "data/CO/Casanare", "isoid": "CAS", "key": "Casanare", "lang": "es"}, "CO/Cauca": {"id": "data/CO/Cauca", "isoid": "CAU", "key": "Cauca", "lang": "es"}, "CO/Cesar": {"id": "data/CO/Cesar", "isoid": "CES", "key": "Cesar", "lang": "es"}, "CO/Chocó": {"id": "data/CO/Chocó", "isoid": "CHO", "key": "Chocó", "lang": "es"}, "CO/Cundinamarca": {"id": "data/CO/Cundinamarca", "isoid": "CUN", "key": "Cundinamarca", "lang": "es"}, "CO/Córdoba": {"id": "data/CO/Córdoba", "isoid": "COR", "key": "Córdoba", "lang": "es"}, "CO/Guainía": {"id": "data/CO/Guainía", "isoid": "GUA", "key": "Guainía", "lang": "es"}, "CO/Guaviare": {"id": "data/CO/Guaviare", "isoid": "GUV", "key": "Guaviare", "lang": "es"}, "CO/Huila": {"id": "data/CO/Huila", "isoid": "HUI", "key": "Huila", "lang": "es"}, "CO/La Guajira": {"id": "data/CO/La Guajira", "isoid": "LAG", "key": "La Guajira", "lang": "es"}, "CO/Magdalena": {"id": "data/CO/Magdalena", "isoid": "MAG", "key": "Magdalena", "lang": "es"}, "CO/Meta": {"id": "data/CO/Meta", "isoid": "MET", "key": "Meta", "lang": "es"}, "CO/Nariño": {"id": "data/CO/Nariño", "isoid": "NAR", "key": "Nariño", "lang": "es"}, "CO/Norte de Santander": {"id": "data/CO/Norte de Santander", "isoid": "NSA", "key": "Norte de Santander", "lang": "es"}, "CO/Putumayo": {"id": "data/CO/Putumayo", "isoid": "PUT", "key": "Putumayo", "lang": "es"}, "CO/Quindío": {"id": "data/CO/Quindío", "isoid": "QUI", "key": "Quindío", "lang": "es"}, "CO/Risaralda": {"id": "data/CO/Risaralda", "isoid": "RIS", "key": "Risaralda", "lang": "es"}, "CO/San Andrés y Providencia": {"id": "data/CO/San Andrés y Providencia", "isoid": "SAP", "key": "San Andrés y Providencia", "lang": "es"}, "CO/Santander": {"id": "data/CO/Santander", "isoid": "SAN", "key": "Santander", "lang": "es"}, "CO/Sucre": {"id": "data/CO/Sucre", "isoid": "SUC", "key": "Sucre", "lang": "es"}, "CO/Tolima": {"id": "data/CO/Tolima", "isoid": "TOL", "key": "Tolima", "lang": "es"}, "CO/Valle del Cauca": {"id": "data/CO/Valle del Cauca", "isoid": "VAC", "key": "Valle del Cauca", "lang": "es"}, "CO/Vaupés": {"id": "data/CO/Vaupés", "isoid": "VAU", "key": "Vaupés", "lang": "es"}, "CO/Vichada": {"id": "data/CO/Vichada", "isoid": "VID", "key": "Vichada", "lang": "es"}}
2 changes: 1 addition & 1 deletion i18naddress/data/ee.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"EE": {"fmt": "%N%n%O%n%A%n%Z %C", "id": "data/EE", "key": "EE", "name": "ESTONIA", "posturl": "https://www.omniva.ee/era/sihtnumbrite_otsing", "require": "ACZ", "zip": "\\d{5}", "zipex": "69501,11212"}}
{"EE": {"fmt": "%N%n%O%n%A%n%Z %C %S", "id": "data/EE", "key": "EE", "name": "ESTONIA", "posturl": "https://www.omniva.ee/era/sihtnumbrite_otsing", "require": "ACZ", "zip": "\\d{5}", "zipex": "69501,11212"}}
2 changes: 1 addition & 1 deletion i18naddress/data/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/kr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion i18naddress/data/lt.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"LT": {"fmt": "%O%n%N%n%A%nLT-%Z %C", "id": "data/LT", "key": "LT", "name": "LITHUANIA", "postprefix": "LT-", "posturl": "http://www.post.lt/lt/?id=316", "require": "ACZ", "zip": "\\d{5}", "zipex": "04340,03500"}}
{"LT": {"fmt": "%O%n%N%n%A%nLT-%Z %C %S", "id": "data/LT", "key": "LT", "name": "LITHUANIA", "postprefix": "LT-", "posturl": "http://www.post.lt/lt/?id=316", "require": "ACZ", "zip": "\\d{5}", "zipex": "04340,03500"}}
2 changes: 1 addition & 1 deletion i18naddress/data/lv.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"LV": {"fmt": "%N%n%O%n%A%n%C, %Z", "id": "data/LV", "key": "LV", "name": "LATVIA", "posturl": "http://www.pasts.lv/lv/uzzinas/nodalas/", "require": "ACZ", "zip": "LV-\\d{4}", "zipex": "LV-1073,LV-1000"}}
{"LV": {"fmt": "%N%n%O%n%A%n%S%n%C, %Z", "id": "data/LV", "key": "LV", "name": "LATVIA", "posturl": "http://www.pasts.lv/lv/uzzinas/nodalas/", "require": "ACZ", "zip": "LV-\\d{4}", "zipex": "LV-1073,LV-1000"}}
2 changes: 1 addition & 1 deletion i18naddress/data/nl.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NL": {"fmt": "%O%n%N%n%A%n%Z %C", "id": "data/NL", "key": "NL", "name": "NETHERLANDS", "posturl": "http://www.postnl.nl/voorthuis/", "require": "ACZ", "zip": "\\d{4} ?[A-Z]{2}", "zipex": "1234 AB,2490 AA"}}
{"NL": {"fmt": "%O%n%N%n%A%n%Z %C", "id": "data/NL", "key": "NL", "name": "NETHERLANDS", "posturl": "http://www.postnl.nl/voorthuis/", "require": "ACZ", "zip": "[1-9]\\d{3} ?(?:[A-RT-Z][A-Z]|S[BCE-RT-Z])", "zipex": "1234 AB,2490 AA"}}
2 changes: 1 addition & 1 deletion i18naddress/data/pk.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"PK": {"fmt": "%N%n%O%n%A%n%C-%Z", "id": "data/PK", "key": "PK", "name": "PAKISTAN", "posturl": "http://www.pakpost.gov.pk/postcode.php", "zip": "\\d{5}", "zipex": "44000"}}
{"PK": {"fmt": "%N%n%O%n%A%n%D%n%C-%Z", "id": "data/PK", "key": "PK", "name": "PAKISTAN", "posturl": "http://www.pakpost.gov.pk/postcode.php", "zip": "\\d{5}", "zipex": "44000"}}
2 changes: 1 addition & 1 deletion i18naddress/data/ro.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"RO": {"fmt": "%N%n%O%n%A%n%Z %C", "id": "data/RO", "key": "RO", "name": "ROMANIA", "posturl": "http://www.posta-romana.ro/zip_codes", "require": "ACZ", "upper": "AC", "zip": "\\d{6}", "zipex": "060274,061357,200716"}}
{"RO": {"fmt": "%N%n%O%n%A%n%Z %S %C", "id": "data/RO", "key": "RO", "name": "ROMANIA", "posturl": "http://www.posta-romana.ro/zip_codes", "require": "ACZ", "upper": "AC", "zip": "\\d{6}", "zipex": "060274,061357,200716"}}
2 changes: 1 addition & 1 deletion i18naddress/data/tw.json

Large diffs are not rendered by default.

0 comments on commit ca24aa4

Please sign in to comment.