catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript

Home Page:https://catamphetamine.gitlab.io/libphonenumber-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fstn opened this issue · comments

commented

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