Skip to content

Commit

Permalink
fix(git): Escape a couple periods in a regex to make GitHub's code sc…
Browse files Browse the repository at this point in the history
…anner happy.
  • Loading branch information
JeffFaer committed Apr 12, 2024
1 parent 41b5f51 commit 505f37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func (repo *gitRepo) discoverName(ctx context.Context) string {
}

var urlRegexes = []*regexp.Regexp{
regexp.MustCompile("^[email protected]:[^/]+/(.+).git$"),
regexp.MustCompile("^https://github.com/[^/]+/(.+).git$"),
regexp.MustCompile(`^git@github\.com:[^/]+/(.+).git$`),
regexp.MustCompile(`^https://github\.com/[^/]+/(.+).git$`),
}

func (repo *gitRepo) checkExplicitRepoName(ctx context.Context) string {
Expand Down

0 comments on commit 505f37f

Please sign in to comment.