Skip to content

Commit 4da0545

Browse files
committed
added CO test case, but then couldnt get it all into a single regex. Split back to two
1 parent 257a810 commit 4da0545

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

conf/countries/worldwide.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ CO:
640640
{{{country}}}
641641
postformat_replace:
642642
- ["Localidad "," "]
643-
- ["(Bogot[áa]), (Bogot[áa]|Bogot[áa] Distrito Capital|Distrito Capital|Capital District)","$1"]
643+
- ["(Bogot[áa]),? (Distrito Capital|Capital District)",$1]
644+
- ["(Bogot[áa]), Bogot[áa]","$1"]
644645

645646
# Costa Rica
646647
CR:

testcases/countries/co.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,22 @@ expected: |
1616
Chapinero
1717
110231 Bogota
1818
Colombia
19+
---
20+
description: deal with Bogota, Capital District / 4.61164, -74.08527
21+
components:
22+
city: Bogota
23+
country: Colombia
24+
country_code: co
25+
neighbourhood: UPZs de Bogotá
26+
postcode: 111411
27+
region: RAP (Especial) Central
28+
road: Transversal 22
29+
shop: Polytech
30+
state: Bogota, Capital District
31+
suburb: Localidad Los Mártires
32+
expected: |
33+
Polytech
34+
Transversal 22
35+
Los Mártires
36+
111411 Bogota
37+
Colombia

0 commit comments

Comments
 (0)