Skip to content

Commit

Permalink
allow using underscore in names
Browse files Browse the repository at this point in the history
  • Loading branch information
djelusic committed Oct 22, 2021
1 parent 742f842 commit 260cc2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func (e *ErrForbiddenCharacters) UserMessage() string {

const (
maxNameLength = 16
allowedCharactersDescription = "numbers, letters and the special character -"
allowedCharactersDescription = "numbers, letters and the special characters - and _"
)

var allowedCharactersRegex = regexp.MustCompile(`^[a-zA-Z0-9\-]*$`)
var allowedCharactersRegex = regexp.MustCompile(`^[a-zA-Z0-9\-\_]*$`)

type ValidationError interface {
Error() string
Expand Down

0 comments on commit 260cc2c

Please sign in to comment.