Skip to content

formatNational not working for some countries in split versions #23

Open
@dwbruhn

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions