Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
refactor(webhook): iterate hostname labels with SplitSeq (#6251)
elonfliter59541ea438b4
diff --git a/internal/webhook/validate.go b/internal/webhook/validate.goindex f0bace53e..f4d47c87a 100644--- a/internal/webhook/validate.go+++ b/internal/webhook/validate.go@@ -127,7 +127,7 @@ func normalizeHostname(hostname string) (string, error) {return "", errors.Errorf("hostname must contain between 1 and 253 characters")}- for _, label := range strings.Split(hostname, ".") {+ for label := range strings.SplitSeq(hostname, ".") {if label == "" || len(label) > 63 {return "", errors.Errorf("hostname labels must contain between 1 and 63 characters")}