phone icon indicating copy to clipboard operation
phone copied to clipboard

Possible error found in the documentation => #format

Open onebree opened this issue 9 years ago • 0 comments

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"

onebree avatar Nov 18 '15 16:11 onebree