phonelib
phonelib copied to clipboard
Some numbers are formatted incorrectly
Phonelib.parse("5141111111").national
=> "(041) 111111"
I would expect the result to be (514) 111-1111
@arpadlukacs This number is parsed as Peru, is this a correct country?
No, the country is US, so the full number is +1 (514) 111-1111 For the record, when I add the "US" parameter to the parse method, it returns the number as it is, but without any formatting:
Phonelib.parse("514-111-1111","US").national
=> "5141111111"
This number is not parsed as valid number (even on original libphonenumber), so it doesn't get formatted.