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

Native lookup empty string bug #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thisismitch
Copy link

@thisismitch thisismitch commented Feb 13, 2025

Fix bug with native name lookup does not error and resolves to Spain/ES:

	country := ""
	result, err = query.FindCountryByNativeName(country)

Because index is built from https://github.com/pariz/countries/blob/e6f73e20f621849191ff687027649250819e4253/yaml/countries/es.yaml#L12, and doesn't ignore empty strings.

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.

1 participant