Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter.swift adding an extra 0 for Bangladesh numbers #756

Open
3 tasks done
mtheresep opened this issue Apr 5, 2024 · 1 comment
Open
3 tasks done

Formatter.swift adding an extra 0 for Bangladesh numbers #756

mtheresep opened this issue Apr 5, 2024 · 1 comment

Comments

@mtheresep
Copy link

New Issue Checklist

Steps to reproduce

  1. Utilizing PhoneNumberKit.format to output .national type phone numbers.
  2. Choose the Bangladesh country picker option.
  3. 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.

@bguidolim
Copy link
Collaborator

Hi @mtheresep

This is the expected result when formatting the number to national, it's defined in the metadata for this region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants