Skip to content

Commit

Permalink
Ensure repository owner names allow dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
simenbrekken-visma authored and ejoffe committed Mar 15, 2024
1 parent 00e9b06 commit e2eb786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config_parser/remote_source.go
Expand Up @@ -45,7 +45,7 @@ func getRepoDetailsFromRemote(remote string) (string, string, string, bool) {
userFormat := `(git@)?`
// "/" is expected in "http://" or "ssh://" protocol, when no protocol given
// it should be ":"
repoFormat := `(?P<githubHost>[a-z0-9._\-]+)(/|:)(?P<repoOwner>\w+)/(?P<repoName>[\w-]+)`
repoFormat := `(?P<githubHost>[a-z0-9._\-]+)(/|:)(?P<repoOwner>[\w-]+)/(?P<repoName>[\w-]+)`
// This is neither required in https access nor in ssh one
suffixFormat := `(.git)?`
regexFormat := fmt.Sprintf(`^origin\s+%s%s%s%s \(push\)`,
Expand Down

0 comments on commit e2eb786

Please sign in to comment.