diff --git a/internal/cli/settings_parity_test.go b/internal/cli/settings_parity_test.go index e08128f72..67a9a687c 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -246,6 +246,7 @@ var notYet = map[string]string{ "GET /api/cli": A, // api.go "GET /api/drift": A, // api.go "GET /api/notices": W, // api.go + "GET /api/feedback": W, // feedback.go: Settings › About's Report a problem, which opens a page "GET /api/omarchy": W, // api.go "GET /api/quit": W, // api.go: the window's Quit question "GET /api/remote": W, // remote.go: another magpie opened in a window of the app diff --git a/internal/gui/feedback.go b/internal/gui/feedback.go index e4d0b29f9..d114664de 100644 --- a/internal/gui/feedback.go +++ b/internal/gui/feedback.go @@ -4,11 +4,11 @@ import ( "context" "net/http" "os" - "regexp" "runtime" "strings" "time" + "github.com/yetone/magpie/internal/lazyre" "github.com/yetone/magpie/internal/proc" ) @@ -16,7 +16,7 @@ import ( // About's Report a problem opens it after copying the facts below. const FeedbackURL = "https://x.com/magpie_router/status/2119861020978188499" -var osVersionRE = regexp.MustCompile(`\d+(\.\d+)+`) +var osVersionRE = lazyre.New(`\d+(\.\d+)+`) // osVersion names the system and its version: "macOS 26.2", "Windows // 10.0.26100", "Ubuntu 24.04.1 LTS". Only what the system calls itself: