lib/twilio_contactable.rb in twilio_contactable-0.8.4 vs lib/twilio_contactable.rb in twilio_contactable-0.8.5
- old
+ new
@@ -7,13 +7,11 @@
def internationalize(given_number)
number = numerize(given_number)
case number.size
when 10
"+1#{number}"
- when 11
+ when 11,12
"+#{number}"
- when 12
- number =~ /\+\d(11)/ ? number : nil
else
nil
end
end