Update deps and simplify parsing

Bump frontend and Go dependencies, then modernize a few hot paths with newer Go string/range helpers. Also widen the client form quota/limit fields to improve the layout.
This commit is contained in:
Sanaei
2026-09-08 14:12:13 +02:00
parent 2ec6c73613
commit 2d151d7648
12 changed files with 301 additions and 341 deletions
+3 -3
View File
@@ -2336,11 +2336,11 @@ func resolveGeofileTag(client *http.Client, latestURL string) (string, error) {
// redirect target.
func geofileTagFromLocation(location string) (string, error) {
const marker = "/releases/download/"
idx := strings.Index(location, marker)
if idx < 0 {
_, after, ok := strings.Cut(location, marker)
if !ok {
return "", common.NewErrorf("unexpected release redirect %q", location)
}
tag, _, found := strings.Cut(location[idx+len(marker):], "/")
tag, _, found := strings.Cut(after, "/")
if !found || tag == "" {
return "", common.NewErrorf("unexpected release redirect %q", location)
}