Open
Description
formatNational
appears to work fine in libphonenumber.js
(using the latest files in dist/
):
$ node
> require('./libphonenumber.js')
{}
> phoneUtils.formatNational('01212345678', 'GB')
'0121 234 5678'
> phoneUtils.formatNational('2684601234', 'AG')
'(268) 460-1234'
But when I try those two function calls in the country-split versions, only GB works:
> require('./libphonenumber_GB.js')
{}
> phoneUtils.formatNational('01212345678', 'GB')
'0121 234 5678' // formatted
> require('./libphonenumber_AG.js')
{}
> phoneUtils.formatNational('2684601234', 'AG')
'2684601234' // not formatted!
(This is just an initial report...I'll debug further.)
Metadata
Assignees
Labels
No labels
Activity