marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
MIT License
5.16k stars 824 forks source link

Vietnamese landline ranges cannot be parsed/invalid. #760

Closed nneo16 closed 5 months ago

nneo16 commented 7 months ago

New Issue Checklist

Hello, In Vietnam we have several area codes, and these ranges seem not be parsed, except the one from Ha Noi. E.g. numbers: Working (Ha Noi): +842488835889 Not working (Ho Chi Minh): +842888807505

Note: total number of digits should be 12 (including country code 84), or 10 (not including country code), regardless number digits of area code (2 or 3). <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

City/Province | Area code -- | -- An Giang | 0296 Ba Ria - Vung Tau | 0254 Bac Kan | 0209 Bac Giang | 0204 Bac Lieu | 0291 Bac Ninh | 0222 Ben Tre | 0275 Binh Dinh | 0256 Binh Duong | 0274 Binh Phuoc | 0271 Binh Thuan | 0252 Ca Mau | 0290 Can Tho | 0292 Cao Bang | 0206 Da Nang | 0236 Dak Lak | 0262 Dak Nong | 0261 Dien Bien | 0215 Dong Nai | 0251 Dong Thap | 0277 Gia Lai | 0269 Ha Giang | 0219 Ha Nam | 0226 Ha Noi | 024 Ha Tinh | 0239 Hai Duong | 0220 Hai Phong | 0225 Hau Giang | 0293 Ho Chi Minh | 028 Hoa Binh | 0218 Hung Yen | 0221 Khanh Hoa | 0258 Kien Giang | 0297 Kon Tum | 0260 Lai Chau | 0213 Lam Dong | 0263 Lang Son | 0205 Lao Cai | 0214 Long An | 0272 Nam Dinh | 0228 Nghe An | 0238 Ninh Binh | 0229 Ninh Thuan | 0259 Phu Tho | 0210 Phu Yen | 0257 Quang Binh | 0232 Quang Nam | 0235 Quang Ngai | 0255 Quang Ninh | 0203 Quang Tri | 0233 Soc Trang | 0299 Son La | 0212 Tay Ninh | 0276 Thai Binh | 0227 Thai Nguyen | 0208 Thanh Hoa | 0237 Thua Thien - Hue | 0234 Tien Giang | 0273 Tra Vinh | 0294 Tuyen Quang | 0207 Vinh Long | 0270 Vinh Phuc | 0211 Yen Bai | 0216

Environment

OS: iOS App: Simple Call Blocker I'm just the app's user, not developer :)

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.