Skip to content

Commit

Permalink
Ensure that El Salvador numbers are plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
baxter committed Jul 17, 2015
1 parent 761ecd0 commit 43aab47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phony/countries.rb
Expand Up @@ -732,7 +732,7 @@
fixed(1) >> split(3,4)

# El Salvador (Republic of)
country '503', fixed(4) >> split(4,4)
country '503', fixed(4) >> split(4)

# Honduras (Republic of) http://www.wtng.info/wtng-504-hn.html
# https://www.numberingplans.com/?page=dialling&sub=areacodes
Expand Down
4 changes: 4 additions & 0 deletions spec/functional/plausibility_spec.rb
Expand Up @@ -177,6 +177,10 @@ def self.it_is_correct_for(country_name, options={})
it_is_correct_for 'Reunion / Mayotte (new)', :samples => '+262 295 276 964'
it_is_correct_for 'Saint Helena', :samples => '+290 5134'
it_is_correct_for 'Saint Pierre and Miquelon (Collectivité territoriale de la République française)', :samples => '+508 474 714'
it_is_correct_for 'Salvador (El)', :samples => [
'+503 2112 1234',
'+503 6112 1234'
]
it_is_correct_for 'Samoa (Independent State of)', :samples => ['+685 800 123',
'+685 61 123',
'+685 721 2345',
Expand Down

0 comments on commit 43aab47

Please sign in to comment.