[#3697] allowed hyphens in usernames

This commit is contained in:
Gani Georgiev committed 2023-11-11 12:19:33 +02:00
1 parent 5835193900
commit 890a0904cf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ import (
)
// username value regex pattern
var usernameRegex = regexp.MustCompile(`^[\w][\w\.]*$`)
var usernameRegex = regexp.MustCompile(`^[\w][\w\.\-]*$`)
// RecordUpsert is a [models.Record] upsert (create/update) form.
type RecordUpsert struct {