diff --git a/cmd/util.go b/cmd/util.go index f1e295a..ccf1d07 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -7,8 +7,6 @@ var ( AnyRegex = regexp.MustCompile(".+") // AlphaRegex matches words containing only letters AlphaRegex = regexp.MustCompile("[a-zA-Z]") - // NameRegex matches people's names - NameRegex = regexp.MustCompile("^[a-zA-Z'-]+$") // EmailRegex matches email addresses EmailRegex = regexp.MustCompile("[a-zA-Z0-9._+]+@[a-zA-Z0-9._]+") ) diff --git a/plugins/core/add_team.go b/plugins/core/add_team.go index 5288904..f34e671 100644 --- a/plugins/core/add_team.go +++ b/plugins/core/add_team.go @@ -30,7 +30,7 @@ func NewAddTeamCmd(ch cmd.CommandHandler) *cmd.Command { "github": &cmd.Option{ Key: "github", HelpText: "the name of the team to create on GitHub", - Format: cmd.NameRegex, + Format: cmd.AnyRegex, Required: false, }, }, diff --git a/plugins/core/edit_user.go b/plugins/core/edit_user.go index 12a99b3..7c8a916 100644 --- a/plugins/core/edit_user.go +++ b/plugins/core/edit_user.go @@ -22,7 +22,7 @@ func NewEditUserCmd(ch cmd.CommandHandler) *cmd.Command { "name": &cmd.Option{ Key: "name", HelpText: "user's full name", - Format: cmd.NameRegex, + Format: cmd.AnyRegex, Required: false, }, "email": &cmd.Option{ diff --git a/plugins/core/set.go b/plugins/core/set.go index 5b30b08..b6b587c 100644 --- a/plugins/core/set.go +++ b/plugins/core/set.go @@ -18,7 +18,7 @@ func NewSetCmd(ch cmd.CommandHandler) *cmd.Command { "name": &cmd.Option{ Key: "name", HelpText: "your full name", - Format: cmd.NameRegex, + Format: cmd.AnyRegex, Required: false, }, "email": &cmd.Option{