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.77k stars 218 forks source link

parseNumber does not work with the new 689 Florida area code. #413

Closed MadLicorice closed 2 years ago

MadLicorice commented 2 years ago

Steps to reproduce

Use the parseNumber function and give it any number with a 689 Area Code E.g.

let parsedPhoneNumber = parseNumber(phoneNumber, {
    country: { default: 'US' }
});

Observed result

Result from above is simply an empty object: {}

image

This is one of my unit tests. The function wrapping it is my own, but the results it spits out is directly from parseNumber

Expected result

It should be spitting out just the formatted number and US as the country.

catamphetamine commented 2 years ago

See the "bug reporting" section of the readme. Reopen when (if) the bug report is fixed.