phones 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phones/parser.rb +1 -0
- data/lib/phones/version.rb +1 -1
- metadata +1 -1
data/lib/phones/parser.rb
CHANGED
@@ -44,6 +44,7 @@ module Phones
|
|
44
44
|
private
|
45
45
|
|
46
46
|
def self.try_without_delimiters!
|
47
|
+
raise ArgumentError, "Valid phone numbers are between 5 and 16" if self.number.length > 5 && self.number.length < 16
|
47
48
|
parts = []
|
48
49
|
# Let's find out if there is a country code
|
49
50
|
country_code = "+1"
|
data/lib/phones/version.rb
CHANGED