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

US Phone Number 7 Digit formatting #347

Open
paulresdat opened this issue Feb 21, 2019 · 0 comments
Open

US Phone Number 7 Digit formatting #347

paulresdat opened this issue Feb 21, 2019 · 0 comments

Comments

@paulresdat
Copy link

Hi,

I've noticed that a 7 digit US phone number mask is not implemented in the current repository, so I forked it and implemented it for my project. I would like to add this feature to the repository but of course want to open an issue first to discuss it.

Basically the 10 digit formatting mask works for most occasions. However sometimes a 7 digit number works for data because the area code is implied. Example: Alaska has 907 as an area code for the whole state and so when people write numbers down, and yes even in business practice, they will leave off the area code to imply the 907 area code. This input mask does not accommodate for those instances where this is important.

Right now I've just added the mask to the main us-phone.js file where the phone length < 8 digits, then format it as '000-0000'. I've built and run it and have it linked to my repository and it works great for every phone number in there. I'd like to contribute and add it to the repo.

Thanks,

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

1 participant