libphonenumber +1 and +1 864
emacslisp opened this issue · comments
const number = phoneUtil.parse('5551234', 'AS');
const formattedNumber = phoneUtil.format(number, phoneNumberFormat.E164);
console.log(formattedNumber);
you can see it only has +1 5551234
but it supposes to be +1 864 for AS American Samoa
what is best way to get '+1 864 5551234'?
This doesnt look like an issue with this package, you get the same behaviour with the upstream demo:
http://libphonenumber.appspot.com/phonenumberparser?number=5551234&country=AS
Specifying the country is only going to add the +1, you still need to provide a full number as input.
Hi,
This issue appears to be related to a metadata problem.
- Start by taking a look at the official demo page and see if the results are expected.
- If they are, you might have spotted a metadata problem on the upstream package. In this case, you should report your issue in the upstream project's issue tracker.
Thanks!