lib/moonshado/sms.rb in moonshado-sms-1.1.1.rc1 vs lib/moonshado/sms.rb in moonshado-sms-1.1.1.rc2

- old
+ new

@@ -55,10 +55,10 @@ formatted = number.scan(/\d+/i).join return is_number_valid?(formatted) ? formatted : (raise MoonshadoSMSException.new("Phone number (#{number}) is not formatted correctly")) end def is_number_valid?(number) - number.length >= 11 && number[/^.\d+$/] + number.length >= 10 && number[/^.\d+$/] end def is_message_valid?(message) if message_length_check? message_length_range.include?(message.to_s.size)