From c058add1c5968026a9512b1fe374dce305d07938 Mon Sep 17 00:00:00 2001 From: Bojan Zivanovic Date: Tue, 9 Jan 2024 14:25:36 +0100 Subject: [PATCH] Panama has provinces, not states. --- formats.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/formats.go b/formats.go index 501095e..055f747 100644 --- a/formats.go +++ b/formats.go @@ -1188,8 +1188,9 @@ var formats = map[string]Format{ PostalCodePattern: `(?:PC )?\d{3}`, }, "PA": { - Layout: "%1\n%2\n%3\n%L\n%R", - Required: []Field{FieldLine1, FieldLocality}, + Layout: "%1\n%2\n%3\n%L\n%R", + Required: []Field{FieldLine1, FieldLocality}, + RegionType: RegionTypeProvince, Regions: NewRegionMap( "1", "Bocas del Toro", "4", "Chiriquí", "2", "Coclé", "3", "Colón", "5", "Darién", "EM", "Emberá",