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 2-character prefix search #415

Merged
merged 3 commits into from
Nov 4, 2023
Merged

Conversation

zcsahok
Copy link
Member

@zcsahok zcsahok commented Oct 30, 2023

In September 2018 cty.dat (https://www.country-files.com/cty-2810-04-september-2018/) added G8ERJ to US

G8ERJ, N8CL and N8RA are all United States, K in CQ zone 5, ITU zone 8

This causes all G8 calls considered as US calls. There was a missing logic to handle exact matches correctly.

First added a test for it.

@zcsahok
Copy link
Member Author

zcsahok commented Oct 30, 2023

As expected test fails with "G8ERJ" != "G"

@zcsahok
Copy link
Member Author

zcsahok commented Oct 30, 2023

Now fixed.

@dl1jbe
Copy link
Member

dl1jbe commented Nov 3, 2023

Nice problem.

Maybe add to comment that having a unique prefix is only enough if call has not to be exact. Otherwise whole call should match.

Otherwise looks good and should go in.

@zcsahok zcsahok merged commit e6e0c48 into Tlf:master Nov 4, 2023
2 checks passed
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.

None yet

2 participants