This commit is contained in:
2026-06-06 01:43:27 +02:00
parent b4e104f5a2
commit 176cc0e62b
7 changed files with 323 additions and 2 deletions
+3
View File
@@ -123,6 +123,9 @@ func (c *Cache) Lookup(call string) (Info, bool) {
return i, ok
}
// BaseCall is the exported callsign normaliser used for hunter-log matching.
func BaseCall(s string) string { return baseCall(s) }
// baseCall normalises a callsign for matching: upper-cased, and when it carries
// "/" segments (F4BPO/P, HB9/F4BPO) we take the longest segment, which is
// almost always the home call.