diff --git a/internal/markdown/parser/tagdata/main.go b/internal/markdown/parser/tagdata/main.go index f180494e..73457329 100644 --- a/internal/markdown/parser/tagdata/main.go +++ b/internal/markdown/parser/tagdata/main.go @@ -206,7 +206,7 @@ func parseFullyQualifiedEmoji(data []byte) ([]string, int) { continue } var sequence strings.Builder - for _, field := range strings.Fields(fields[0]) { + for field := range strings.FieldsSeq(fields[0]) { sequence.WriteRune(parseCodePoint(field)) } emoji := sequence.String() diff --git a/server/router/api/v1/auth_service_client_info_test.go b/server/router/api/v1/auth_service_client_info_test.go index 682fd7f5..19fccf28 100644 --- a/server/router/api/v1/auth_service_client_info_test.go +++ b/server/router/api/v1/auth_service_client_info_test.go @@ -219,7 +219,7 @@ func testCookieExpiry() time.Time { } func containsCookieAttribute(cookie, attr string) bool { - for _, part := range strings.Split(cookie, ";") { + for part := range strings.SplitSeq(cookie, ";") { if strings.EqualFold(strings.TrimSpace(part), attr) { return true } diff --git a/server/router/api/v1/auth_service_session.go b/server/router/api/v1/auth_service_session.go index 57f75f47..e41c33ca 100644 --- a/server/router/api/v1/auth_service_session.go +++ b/server/router/api/v1/auth_service_session.go @@ -198,7 +198,7 @@ func isSecureRequest(ctx context.Context) bool { } for _, value := range md.Get("x-forwarded-proto") { - for _, proto := range strings.Split(value, ",") { + for proto := range strings.SplitSeq(value, ",") { if strings.EqualFold(strings.TrimSpace(proto), "https") { return true } diff --git a/server/router/api/v1/gateway_route_resolver_test.go b/server/router/api/v1/gateway_route_resolver_test.go index 2eed8cda..05cf7120 100644 --- a/server/router/api/v1/gateway_route_resolver_test.go +++ b/server/router/api/v1/gateway_route_resolver_test.go @@ -306,7 +306,7 @@ func synthesizeGatewayVariable(segment string) []string { } var built []string - for _, part := range strings.Split(subtemplate, "/") { + for part := range strings.SplitSeq(subtemplate, "/") { switch part { case "*": built = append(built, "one")