From e2eb7866cef98536e1b58e18d55cdaa298bc6762 Mon Sep 17 00:00:00 2001 From: Simen Brekken Date: Fri, 1 Mar 2024 22:03:01 +0100 Subject: [PATCH] Ensure repository owner names allow dashes --- config/config_parser/remote_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config_parser/remote_source.go b/config/config_parser/remote_source.go index a6395e4..bacdb81 100644 --- a/config/config_parser/remote_source.go +++ b/config/config_parser/remote_source.go @@ -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[a-z0-9._\-]+)(/|:)(?P\w+)/(?P[\w-]+)` + repoFormat := `(?P[a-z0-9._\-]+)(/|:)(?P[\w-]+)/(?P[\w-]+)` // This is neither required in https access nor in ssh one suffixFormat := `(.git)?` regexFormat := fmt.Sprintf(`^origin\s+%s%s%s%s \(push\)`,