phone
phone copied to clipboard
Possible error found in the documentation => #format
https://github.com/carr/phone#formatting
Could someone explain how the US formatted number is so different than the other examples? Is this an error in the documentation? If so, what would the US formatted number be?
pn = Phoner::Phone.parse('+385915125486')
pn.format(:europe) # => "+385 (0) 91 512 5486"
pn.format(:us) # => "(234) 123-4567"
pn.format(:default_with_extension) # => "+3851234567x143"