Wrong Canada national format
Closed this issue · 2 comments
philippevezina commented
The national
format return for an American or Canadian number is 555 555 5555
but it should actually be (555) 555-5555
.
daddyz commented
@philippevezina if you are parsing valid phone number, then it will be ok
p = Phonelib.parse '1 212 555 1234'
p.national # => "(212) 555-1234"
philippevezina commented
@daddyz You're right! I did more testing and turns out the problem is only for Canadian numbers: Phonelib.parse('1 418 928 3648').national => "418 928 3648"
We should reopen this issue.