Skip to content

Commit

Permalink
Fix issue tracker auto detector's regex (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdy Khoshnoody <mehdy.khoshnoody@gmail.com>
  • Loading branch information
mehdy authored Sep 13, 2020
1 parent ea73114 commit 22a5fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var validIssueTrackers = []IssueTracker{

var (
windowsAbsolutePathPattern = regexp.MustCompile("^[A-Z]{1}:")
gitRemoteOriginPattern = regexp.MustCompile(`url\s=\s\w+(://|@)(?P<origin>(?P<host>.+?)(:|/).+)(\.git)?`)
gitRemoteOriginPattern = regexp.MustCompile(`(?Um)url\s=\s\w+(://|@)(?P<origin>(?P<host>.+)?(:|/).+)(\.git)?$`)
)

// Local todocheck configuration struct definition
Expand Down

0 comments on commit 22a5fe9

Please sign in to comment.