catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.79k stars 216 forks source link

Unable to parse US Toll-Free numbers into National Format #184

Closed kwoumn3 closed 6 years ago

kwoumn3 commented 6 years ago

I'm not sure if this is the expected functionality, but US toll free numbers are unable to be parsed into National format.

So for example if I do format(parse("+18001000066", 'National'), I get back an empty object.

Is it possible for US toll free numbers to be parsed as National numbers?

catamphetamine commented 6 years ago

See the bug reporting section of the readme. https://github.com/catamphetamine/libphonenumber-js#bug-reporting

catamphetamine commented 6 years ago

You can reopen the issue after that.