Skip to content

Commit

Permalink
Regexp style consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Narnach committed Apr 20, 2011
1 parent be8dad8 commit 13ad220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/number_recognizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ class NumberRecognizer
# Input
attr_accessor :number, :old_number, :country_name, :country, :local_number

add_format :country => "Netherlands", :mobile=>true, :format => /(31)(6\d{8,8})/
add_format :country => "Belgium", :mobile=>true, :format => /(32)(4\d{8,8})/
add_format :country => "Netherlands", :mobile=>true, :format => /(31)(6\d{8})/
add_format :country => "Belgium", :mobile=>true, :format => /(32)(4\d{8})/
add_format :country => "England", :mobile=>true, :format => /(44)(7\d{8,9})/
add_format :country => "Australia", :mobile=>true, :format => /(61)(4\d{8})/
add_format :country => "Portugal", :mobile=>true, :format => /(351)(9\d{8})/

add_format :country => "Netherlands", :mobile=>false, :format => /(31)([123457890]\d{8,8})/
add_format :country => "Netherlands", :mobile=>false, :format => /(31)([123457890]\d{8})/
add_format :country => "Suriname", :mobile=>false, :format => /(597)(\d{7,7})/
add_format :country => "Dutch Antilles", :mobile=>false, :format => /(599)(\d{7,7})/
add_format :country => "England", :mobile=>false, :format => /(44)([0-68-9]\d{8,9})/
Expand Down

0 comments on commit 13ad220

Please sign in to comment.