fix: /AM not recognizing the country now showing

This commit is contained in:
2026-06-16 20:05:03 +02:00
parent 75ee5344a4
commit e5c6bddb29
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
// Single source of truth for the app version shown in the UI (header + About). // Single source of truth for the app version shown in the UI (header + About).
// Bump this on a release (the release script updates it alongside telemetry.go). // Bump this on a release (the release script updates it alongside telemetry.go).
export const APP_VERSION = '0.11'; export const APP_VERSION = '0.11';
// Author / credits, shown in Help → About. // Author / credits, shown in Help -> About.
export const APP_AUTHOR = 'F4BPO'; export const APP_AUTHOR = 'F4BPO';
+2 -2
View File
@@ -214,8 +214,8 @@ func TestNormalize(t *testing.T) {
"f4bpo": "F4BPO", "f4bpo": "F4BPO",
" F4BPO ": "F4BPO", " F4BPO ": "F4BPO",
"F4BPO/P": "F4BPO", "F4BPO/P": "F4BPO",
"F4BPO/MM": "", // maritime mobile → no DXCC entity "F4BPO/MM": "F4BPO", // maritime mobile → strip, keep home entity for the log
"F4BPO/AM": "", // aeronautical mobile → no DXCC entity "F4BPO/AM": "F4BPO", // aeronautical mobile → strip, keep home entity for the log
"F4BPO/M": "F4BPO", // plain mobile keeps the home entity "F4BPO/M": "F4BPO", // plain mobile keeps the home entity
"F4BPO/5": "F5BPO", // "/5" re-homes to call area 5 "F4BPO/5": "F5BPO", // "/5" re-homes to call area 5
"HD5MW/8": "HD8MW", // "/8" → Galápagos call area (HD8) "HD5MW/8": "HD8MW", // "/8" → Galápagos call area (HD8)
+2 -2
View File
@@ -13,11 +13,11 @@ import (
"hamlog/internal/applog" "hamlog/internal/applog"
) )
// Anonymous usage telemetry — a once-a-day "app_opened" heartbeat to PostHog so // Anonymous usage telemetry - a once-a-day "app_opened" heartbeat to PostHog so
// the OpsLog author can see how many people actively use it. Privacy by design: // the OpsLog author can see how many people actively use it. Privacy by design:
// only a random install ID + app version + OS are sent (no callsign, no QSO // only a random install ID + app version + OS are sent (no callsign, no QSO
// data, no IP beyond what any HTTP request reveals). Users can disable it in // data, no IP beyond what any HTTP request reveals). Users can disable it in
// Preferences → General. See [[user-analytics-posthog]] notes in MEMORY. // Preferences -> General. See [[user-analytics-posthog]] notes in MEMORY.
const ( const (
// appVersion is stamped on every heartbeat (and could feed the About box). // appVersion is stamped on every heartbeat (and could feed the About box).