Skip to content

Commit b722152

Browse files
committed
Add a locality field to the format for Singapore (SG).
Source: https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/sgpEn.pdf
1 parent 6f458d8 commit b722152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

formats.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1439,8 +1439,8 @@ var formats = map[string]Format{
14391439
PostalCodePattern: `\d{3} ?\d{2}`,
14401440
},
14411441
"SG": {
1442-
Layout: "%1\n%2\n%3\n%P",
1443-
Required: []Field{FieldLine1, FieldPostalCode},
1442+
Layout: "%1\n%2\n%3\n%L %P",
1443+
Required: []Field{FieldLine1, FieldLocality, FieldPostalCode},
14441444
PostalCodePattern: `\d{6}`,
14451445
},
14461446
"SH": {

0 commit comments

Comments
 (0)