Skip to content

Native lookup empty string bug#58

Open
thisismitch wants to merge 2 commits into
pariz:masterfrom
thisismitch:native-lookup-empty-string-bug
Open

Native lookup empty string bug#58
thisismitch wants to merge 2 commits into
pariz:masterfrom
thisismitch:native-lookup-empty-string-bug

Conversation

@thisismitch

@thisismitch thisismitch commented Feb 13, 2025

Copy link
Copy Markdown

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