Skip to content

Commit

Permalink
Better handling of punctuation [#8]
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Mar 16, 2021
1 parent 8cfed37 commit e9b8c03
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/normalize_country.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def country_for(name)
end
end

class Country
class Country # :nodoc: all
def initialize(config)
raise ArgumentError, "country config must be a hash" unless Hash === config

Expand Down
21 changes: 21 additions & 0 deletions lib/normalize_country/countries/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ AW:
emoji: "\U0001F1E6\U0001F1FC"
shortcode: ":flag-aw:"
AX:
aliases:
- Aland Islands
alpha2: AX
alpha3: ALA
fifa:
Expand All @@ -196,6 +198,7 @@ AZ:
BA:
aliases:
- Bosnia-Herzegovina
- Bosnia Herzegovina
alpha2: BA
alpha3: BIH
fifa: BIH
Expand Down Expand Up @@ -299,6 +302,9 @@ BL:
- Saint Barts
- St. Barts
- St. Barths
- Saint Barthelemy
- Saint Barthélemy
- St. Barthélemy
alpha2: BL
alpha3: BLM
fifa:
Expand Down Expand Up @@ -451,6 +457,7 @@ CC:
shortcode: ":flag-cc:"
CD:
aliases:
- Congo Kinshasa
- Congo-Kinshasa
- DRC
- DR Congo
Expand Down Expand Up @@ -479,6 +486,7 @@ CF:
CG:
aliases:
- Congo-Brazzaville
- Congo Brazzaville
- Congo Republic
- Congo, Republic of the
alpha2: CG
Expand Down Expand Up @@ -837,6 +845,9 @@ FM:
emoji: "\U0001F1EB\U0001F1F2"
shortcode: ":flag-fm:"
FO:
aliases:
- Faroes
- Faeroes
alpha2: FO
alpha3: FRO
fifa: FRO
Expand Down Expand Up @@ -1050,6 +1061,9 @@ GU:
emoji: "\U0001F1EC\U0001F1FA"
shortcode: ":flag-gu:"
GW:
aliases:
- Guinea Bissau
- Republic of Guinea Bissau
alpha2: GW
alpha3: GNB
fifa: GNB
Expand Down Expand Up @@ -2147,6 +2161,8 @@ QA:
emoji: "\U0001F1F6\U0001F1E6"
shortcode: ":flag-qa:"
RE:
aliases:
- Reunion
alpha2: RE
alpha3: REU
fifa:
Expand Down Expand Up @@ -2387,6 +2403,11 @@ ST:
aliases:
- Democratic Republic of Sao Tome and Principe
- São Tomé and Príncipe
- Sao Tomé and Príncipe
- Sao Tome and Príncipe
- São Tomé and Principe
- São Tome and Principe
- São Tome and Príncipe
alpha2: ST
alpha3: STP
fifa: STP
Expand Down

0 comments on commit e9b8c03

Please sign in to comment.