phone icon indicating copy to clipboard operation
phone copied to clipboard

Allows 9&11 digit North American phone numbers

Open jpaas opened this issue 13 years ago • 2 comments

Maybe I'm just not aware that these are valid, but the gem is allowing North American phone numbers with 9 and 11 digits. As far as I know only 10 digits are valid.

e.g.

ruby-1.9.2-p290 :017 > Phoner::Phone.parse "212-555-121", :country_code => '1' => +1212555121 ruby-1.9.2-p290 :018 > Phoner::Phone.parse "212-555-12", :country_code => '1' RuntimeError: Must enter area code or set default area code ruby-1.9.2-p290 :019 > Phoner::Phone.parse "212-555-12", :country_code => '1', :area_code => '666' => +166621255512

jpaas avatar May 16 '12 14:05 jpaas

The repo owner is AWOL. Your issue has already been ignored for 6 months.

Try the wmoxam/phone branch instead. The code there is much more actively maintained.

g1smd avatar Nov 12 '12 23:11 g1smd

I'm going to be making a pass through issues soon. See #41.

elskwid avatar May 09 '13 18:05 elskwid