diff --git a/main.go b/main.go index f13e82c..d46c4d2 100644 --- a/main.go +++ b/main.go @@ -276,11 +276,11 @@ func getRepo(directory string) (string, IssueAPI, error) { for _, creds := range credentials { hostRegex := regexp.MustCompile( - creds.getHost() + "[:/]([-\\w]+)\\/([-\\w]+)(.git)?") + creds.getHost() + "[:/]([-\\w/]+)(?:.git)?$") groups := hostRegex.FindStringSubmatch(urlString) if groups != nil { - return groups[1] + "/" + groups[2], creds, nil + return groups[1], creds, nil } }