Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

! Fixes #73

  • Loading branch information...
commit 8e113a03899b56a17354131117883f853fbca730 1 parent d672f74
@floere authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  lib/phony/country.rb
  2. +3 −0  spec/lib/phony_spec.rb
View
1  lib/phony/country.rb
@@ -43,6 +43,7 @@ def normalize national_number
normalized = code.normalize national_number
return normalized if normalized && !normalized.empty?
end
+ return nil
end
# Is this national number a vanity number?
View
3  spec/lib/phony_spec.rb
@@ -24,6 +24,9 @@
describe "normalize" do
describe "some examples" do
+ it "should normalize a too short number" do
+ Phony.normalize('+972').should == '972'
+ end
it "should normalize an already normalized number" do
Phony.normalize('41443643533').should == '41443643533'
end
Please sign in to comment.
Something went wrong with that request. Please try again.