Skip to content

Commit

Permalink
added CO test case, but then couldnt get it all into a single regex. …
Browse files Browse the repository at this point in the history
…Split back to two
  • Loading branch information
freyfogle committed Jan 9, 2025
1 parent 257a810 commit 4da0545
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf/countries/worldwide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,8 @@ CO:
{{{country}}}
postformat_replace:
- ["Localidad "," "]
- ["(Bogot[áa]), (Bogot[áa]|Bogot[áa] Distrito Capital|Distrito Capital|Capital District)","$1"]
- ["(Bogot[áa]),? (Distrito Capital|Capital District)",$1]
- ["(Bogot[áa]), Bogot[áa]","$1"]

# Costa Rica
CR:
Expand Down
19 changes: 19 additions & 0 deletions testcases/countries/co.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,22 @@ expected: |
Chapinero
110231 Bogota
Colombia
---
description: deal with Bogota, Capital District / 4.61164, -74.08527
components:
city: Bogota
country: Colombia
country_code: co
neighbourhood: UPZs de Bogotá
postcode: 111411
region: RAP (Especial) Central
road: Transversal 22
shop: Polytech
state: Bogota, Capital District
suburb: Localidad Los Mártires
expected: |
Polytech
Transversal 22
Los Mártires
111411 Bogota
Colombia

0 comments on commit 4da0545

Please sign in to comment.