Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update xerrors description
  • Loading branch information
ghuntley committed Dec 8, 2022
commit efd990096c21b337e9ef12254efea1108568f24d
2 changes: 1 addition & 1 deletion coderd/httpapi/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NameValid(str string) error {
}
matched := UsernameValidRegex.MatchString(str)
if !matched {
return xerrors.New("must be alphanumeric with hyphens")
return xerrors.New("must be alphanumeric with hyphens, underscores or periods")
}
return nil
}
Expand Down