From eff60ba6becafc243b011d91761f4757462d9b30 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 25 Feb 2025 20:29:06 +0100 Subject: [PATCH] enable parsing of US ZIP+ codes The four-digit part of these postcodes will simply be ignored. --- settings/country_settings.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings/country_settings.yaml b/settings/country_settings.yaml index 667684c6..a2ca7412 100644 --- a/settings/country_settings.yaml +++ b/settings/country_settings.yaml @@ -1809,7 +1809,8 @@ us: languages: en names: !include country-names/us.yaml postcode: - pattern: "ddddd" + pattern: "(ddddd)(?:-dddd)?" + output: \1 # Uruguay (Uruguay) -- 2.39.5