Skip to content

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