google / google/libaddressinput
Bahrain (BH) postcode regex incorrect
- Dominant language
- C++
- Stars
- 624
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I believe the postcode regex for Bahrain to be incorrect.
https://www.gstatic.com/chrome/autofill/libaddressinput/chromium-i18n/ssl-aggregate-address/data/BH
It is currently `(?:\d|1[0-2])\d{2}` however I've found that postcodes are:
> Valid post code numbers are 101 to 1216 with gaps in the range. Known as block number (Arabic: رقم المجمع) formally. The first digit in NNN format and the first two digits in NNNN format refer to one of the 12 municipalities of the country. PO Box address doesn't need a block number or city name, just the PO Box number followed by the name of the country, Bahrain.
And https://en.youbianku.com/Bahrain
Contributor guide
Assessment
This issue has not been assessed yet.