Skip to content

Commit

Permalink
fix: fixes issue ID extraction
Browse files Browse the repository at this point in the history
Fixes a bug where a left-over `|` was causing all lines to match the
`lineRegex`, resulting in any number prefixed with a `#` character to be
picked up as an issue number.
  • Loading branch information
npepinpe authored and menski committed Dec 7, 2021
1 parent 4953846 commit 1a80485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitlog/gitlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

var (
lineRegex = regexp.MustCompile(`(?im)^\s*(closes?|related|relates|merges?|back\s?ports?|)\s+.*$`)
lineRegex = regexp.MustCompile(`(?im)^\s*(closes?|related|relates|merges?|back\s?ports?)\s+.*$`)
idRegex = regexp.MustCompile(`#(\d+)`)
)

Expand Down

0 comments on commit 1a80485

Please sign in to comment.