Skip to content

Commit 2a99b24

Browse files
committed
HU, deal withcase of no housenumber, with test
1 parent 9ef3c2f commit 2a99b24

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

conf/countries/worldwide.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,8 @@ HU:
10261026
{{{postcode}}} {{#first}} {{{city}}} || {{{town}}} || {{{village}}} || {{{hamlet}}} {{/first}}
10271027
{{{road}}} {{{house_number}}}.
10281028
{{{country}}}
1029+
postformat_replace:
1030+
- ["\n.\n","\n"]
10291031

10301032
# Indonesia
10311033
# https://en.wikipedia.org/wiki/Address_%28geography%29#Indonesia

testcases/countries/hu.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ expected: |
1818
1016 Budapest
1919
Dezső utca 11.
2020
Hungary
21+
---
22+
description: just postcode
23+
components:
24+
country: Hungary
25+
country_code: hu
26+
county: Makói járás
27+
municipality: Makói járás
28+
postcode: 6900
29+
region: South Great Plain
30+
town: Makó
31+
expected: |
32+
6900 Makó
33+
Hungary
2134
2235
2336

0 commit comments

Comments
 (0)