Skip to content

Commit

Permalink
more tests, better replacement for DK
Browse files Browse the repository at this point in the history
  • Loading branch information
freyfogle committed Jan 26, 2025
1 parent f89925c commit fb93381
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -734,7 +734,8 @@ DJ:
DK:
address_template: *generic1
replace:
- ["^Capital Region of ",""]
- ["state=Capital Region of Denmark","Capital Region"]
- ["^Region of ",""]

# Dominica
DM:
Expand Down
14 changes: 14 additions & 0 deletions testcases/countries/dk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ expected: |
Baggårde 17A
5970 Ærøskøbing
Denmark
---
#
description: Hillerød, Denmark
components:
country: Denmark
country_code: dk
municipality: Hillerød Municipality
postal_city: Hillerød
postcode: 3400
state: Capital Region
town: Hillerød
expected: |
3400 Hillerød
Denmark

0 comments on commit fb93381

Please sign in to comment.