Skip to content

Commit

Permalink
fix(sxtctl): allow dashes in remote names
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Davenport <[email protected]>
  • Loading branch information
binocarlos committed Jan 8, 2021
1 parent 263fa73 commit e6447c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit e6447c6

Please sign in to comment.