From b722152adc38f98b39ad89eced500a6bed190719 Mon Sep 17 00:00:00 2001 From: Bojan Zivanovic Date: Mon, 15 Jan 2024 22:14:17 +0100 Subject: [PATCH] Add a locality field to the format for Singapore (SG). Source: https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/sgpEn.pdf --- formats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats.go b/formats.go index 3b71eeb..a705a12 100644 --- a/formats.go +++ b/formats.go @@ -1439,8 +1439,8 @@ var formats = map[string]Format{ PostalCodePattern: `\d{3} ?\d{2}`, }, "SG": { - Layout: "%1\n%2\n%3\n%P", - Required: []Field{FieldLine1, FieldPostalCode}, + Layout: "%1\n%2\n%3\n%L %P", + Required: []Field{FieldLine1, FieldLocality, FieldPostalCode}, PostalCodePattern: `\d{6}`, }, "SH": {