Skip to content

Commit

Permalink
fix: simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fitz7 committed Mar 3, 2023
1 parent 2ac90e5 commit 307542a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/commit_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

var (
CAVERSION = "dev"
commitPattern = regexp.MustCompile(`^(\w*)(?:\((.*)\))?(\!)?\: (.*)$`)
commitPattern = regexp.MustCompile(`^(\w*)(?:\((.*)\))?(!)?: (.*)$`)
breakingPattern = regexp.MustCompile("BREAKING CHANGES?")
mentionedIssuesPattern = regexp.MustCompile(`#(\d+)`)
mentionedUsersPattern = regexp.MustCompile(`(?i)@([a-z\d]([a-z\d]|-[a-z\d])+)`)
Expand Down

0 comments on commit 307542a

Please sign in to comment.