You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: