From e6447c6f72a01aaf5f2b045625cf5af806e74516 Mon Sep 17 00:00:00 2001 From: Kai Davenport Date: Fri, 8 Jan 2021 16:38:13 +0000 Subject: [PATCH] fix(sxtctl): allow dashes in remote names Signed-off-by: Kai Davenport --- pkg/commands/remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/remote.go b/pkg/commands/remote.go index 0e5daf1..417d9d9 100644 --- a/pkg/commands/remote.go +++ b/pkg/commands/remote.go @@ -65,7 +65,7 @@ func NewCmdRemoteAdd(out, errOut io.Writer) *cobra.Command { } name := args[0] - re := regexp.MustCompile(`^\w+$`) + re := regexp.MustCompile(`^[\w-]+$`) if !re.Match([]byte(name)) { return fmt.Errorf("Remote name must be alphanumeric") }