Skip to content

Commit

Permalink
Merge pull request floere#510 from dwilkie/update_trunk_prefix_for_laos
Browse files Browse the repository at this point in the history
Fix trunk prefix for Laos
  • Loading branch information
floere authored Aug 14, 2023
2 parents 9124534 + fa86ea6 commit b43fdab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/phony/countries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@

# Lao People's Democratic Republic https://www.wtng.info/wtng-856-la.html, https://www.numberingplans.com
country '856',
trunk('0') |
one_of('30') >> split(3,4) | # geographic
one_of('20') >> split(4,4) | # mobile
fixed(2) >> split(3,3) # geographic
Expand Down
5 changes: 5 additions & 0 deletions qed/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers
Phony.format('393333337647', :format => :national).assert == '333 333 7647'
Phony.format('390108480161', :format => :national).assert == '010 8480161'

#### Laos

Phony.format('8562092960311', :format => :international).assert == '+856 20 9296 0311'
Phony.format('8562092960311', :format => :national).assert == '020 9296 0311'

#### Liechtenstein

Phony.format('4233841148', :format => :international_relative).assert == '00423 384 11 48'
Expand Down

0 comments on commit b43fdab

Please sign in to comment.