Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search to work for countries with comma in their name #490

Merged
merged 1 commit into from
Dec 23, 2017

Conversation

budmc29
Copy link

@budmc29 budmc29 commented Dec 22, 2017

Using ISO3166::Country.find_country_by_name('Korea, Republic of')
returns nil, since Korea is stored as "Korea (Republic of)".

This change will normalize all the terms that are used to search and
those in the Data.cache.

Using ISO3166::Country.find_country_by_name('Korea, Republic of')
returns nil, since Korea is stored as "Korea (Republic of)".

This change will normalize all the terms that are used to search and
those in the Data.cache.
@rposborne rposborne merged commit 6667db2 into countries:master Dec 23, 2017
@budmc29
Copy link
Author

budmc29 commented Dec 23, 2017

Thank you very much.

@rposborne
Copy link
Collaborator

rposborne commented Dec 23, 2017

Welcome, I'll try to cut a release soon.

Ping me again if it's not done by next friday :)

@rposborne
Copy link
Collaborator

@budmc29 2.1.3 released which includes this change

@budmc29
Copy link
Author

budmc29 commented Dec 26, 2017

That's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants