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
chore: update username regexp
Stevenc58820fa6454
diff --git a/api/v1/auth.go b/api/v1/auth.goindex f27b36ccb..521026056 100644--- a/api/v1/auth.go+++ b/api/v1/auth.go@@ -22,7 +22,7 @@ import ()var (- usernameMatcher = regexp.MustCompile("^[a-z]([a-z0-9-]{1,30}[a-z0-9])?$")+ usernameMatcher = regexp.MustCompile("^[a-z0-9]([a-z0-9-]{1,30}[a-z0-9])$"))type SignIn struct {diff --git a/api/v2/user_service.go b/api/v2/user_service.goindex 1e65af5b6..72aedc429 100644--- a/api/v2/user_service.go+++ b/api/v2/user_service.go@@ -23,7 +23,7 @@ import ()var (- usernameMatcher = regexp.MustCompile("^[a-z]([a-z0-9-]{1,30}[a-z0-9])?$")+ usernameMatcher = regexp.MustCompile("^[a-z0-9]([a-z0-9-]{1,30}[a-z0-9])$"))type UserService struct {