Skip to content

Commit

Permalink
Update the BH postal code pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Mar 3, 2023
1 parent a47c514 commit 612f4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ var formats = map[string]Format{
"BH": {
Layout: "%1\n%2\n%3\n%L %P",
Required: []Field{FieldLine1, FieldLocality},
PostalCodePattern: `(?:\d|1[0-2])\d{2}`,
PostalCodePattern: `(?:^|\b)(?:1[0-2]|[1-9])\d{2}(?:$|\b)`,
},
"BL": {
Layout: "%1\n%2\n%3\n%P %L",
Expand Down

0 comments on commit 612f4aa

Please sign in to comment.