Skip to content

Find phone numbers in text doesn't work if fr and us are mixed #459

@fstn

Description

@fstn

Got o the demo https://catamphetamine.gitlab.io/libphonenumber-js/?parseCountry=US&parseValue=213-373-4253&asYouTypeCountry=US&findNumbersCountry=US&findNumbersText=My%20phone%20number%20is%20%2B1%20123-456-7890%20and%20my%20other%20number%20is%20%2B33%201%2023%2045%2067%2089 and search number for:

My phone number is +1 123-456-7890 and my other number is +33 1 23 45 67 89

Result will be:
Phone numbers found: 1
My phone number is +1 123-456-7890 and my other number is +33 1 23 45 67 89
Number: +33123456789, Country: FR, Starts at: 58, Ends at: 75

Metadata

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