Skip to content

Commit 0c62b80

Browse files
committed
additional test case and regex for Italy (IT)
1 parent e04dd36 commit 0c62b80

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

conf/countries/worldwide.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,9 +1146,9 @@ IS:
11461146
IT:
11471147
address_template: *generic8
11481148
replace:
1149-
- ["Città metropolitana di ",""]
1150-
- ["Metropolitan City of ",""]
1151-
- ["^Provincia di ",""]
1149+
- ["county=Provincia di ",""]
1150+
- ["county=Città Metropolitana di ",""]
1151+
- ["county=Metropolitan City of ",""]
11521152
postformat_replace:
11531153
- ["Vatican City\nVatican City$","\nVatican City"]
11541154
- ["Città del Vaticano\nCittà del Vaticano$","Città del Vaticano\n"]

testcases/countries/it.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,17 @@ expected: |
7474
Via dei Gondi
7575
50122 Firenze FI
7676
Italia
77+
---
78+
description: clean up county
79+
components:
80+
country: Italia
81+
country_code: it
82+
county: Provincia di Treviso
83+
postcode: 31046
84+
road: Piazza Grande
85+
state: Veneto
86+
town: Oderzo
87+
expected: |
88+
Piazza Grande
89+
31046 Oderzo TV
90+
Italia

0 commit comments

Comments
 (0)