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

Converter returns regex when passed UK #113

Closed
jmartinter opened this issue Aug 5, 2022 · 3 comments
Closed

Converter returns regex when passed UK #113

jmartinter opened this issue Aug 5, 2022 · 3 comments

Comments

@jmartinter
Copy link

Hi, I noticed that the library behaviour changed recently. When running

import country_converter as coco

cc = coco.CountryConverter()
cc.convert('UK', src="ISO2", to="ISO2", not_found="missing")

it returns ^uk$|^gb$ regex instead of the GB code returned previously. Is it intended?

@konstantinstadler
Copy link
Member

Oh 🤦🏽 - I will fix that. Thanks for reporting

@konstantinstadler
Copy link
Member

Fixed in 0.7.7

@jmartinter
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants