Skip to content

Commit

Permalink
Add a locality field to the format for Singapore (SG).
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Jan 15, 2024
1 parent 6f458d8 commit b722152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit b722152

Please sign in to comment.