PhoneNumberKit
PhoneNumberKit copied to clipboard
Formatter.swift adding an extra 0 for Bangladesh numbers
New Issue Checklist
- [x] Updated PhoneNumberKit to the latest version
- [x] Phone number formatted correctly on JavaScript version
- [x] I searched for existing GitHub issues
Steps to reproduce
- Utilizing PhoneNumberKit.format to output
.nationaltype phone numbers. - Choose the Bangladesh country picker option.
- Type a Bangladesh phone number. (example: 721-123456)
Expected result
National result: 721-123456
Actual result
National result: 0721-123456
Environment
Utilizing this library for an app via Cocoapods. Recently had a Bangladeshi user report that they are not able to add their phone number because of the extra 0 being added.
Hi @mtheresep
This is the expected result when formatting the number to national, it's defined in the metadata for this region.
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.