Skip to content

Commit

Permalink
Define NANP uses parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed May 22, 2015
1 parent 0b62715 commit d89edb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/phony/countries.rb
Expand Up @@ -53,7 +53,9 @@
# The US has a delimiter between NDC and local number.
trunk('1%s', normalize: true, format: false) | # http://en.wikipedia.org/wiki/Trunk_prefix
fixed(3) >> split(3,4),
:invalid_ndcs => /[0-1]\d{2}|[3-9]11/
:invalid_ndcs => /[0-1]\d{2}|[3-9]11/,
:parentheses => true,
:local_space => :-

# Kazakhstan (Republic of) & Russsian Federation.
# also Abhasia and South Osetia autonomous regions / recognized by some states as independent countries
Expand Down

0 comments on commit d89edb5

Please sign in to comment.