Skip to content

Commit

Permalink
Made the regexp to look up the JIRA issue ID case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kleuser committed Oct 10, 2017
1 parent ed95789 commit f50cc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func GetIssuesOutOfMessage(issueMessage string) []string {
// ((?<!([A-Z]{1,10})-?)[A-Z]+-\d+)
// See http://stackoverflow.com/questions/26771592/negative-look-ahead-go-regular-expressions
var issues []string
re := regexp.MustCompile("([A-Z]+)-(\\d+)")
re := regexp.MustCompile("(?i)([A-Z]+)-(\\d+)")

parts := re.FindAllStringSubmatch(issueMessage, -1)
for _, v := range parts {
Expand Down

0 comments on commit f50cc07

Please sign in to comment.