Skip to content

Commit

Permalink
feat: git.log.CommitType ( Fixes #301 )
Browse files Browse the repository at this point in the history
Fixing inner variables
  • Loading branch information
James Brundage committed Sep 25, 2024
1 parent 07a96b0 commit 07457f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Types/git.log/get_CommitType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
if ($this.CommitMessage -match '^(?<Type>[^\r\n]+?):\s{0,}(?<Message>[^\r\n]+)') {
$matchType = $Matches.Type
if ($matchType -match '\(') {
$this.Type -replace '\(.+$'
$matchType -replace '\(.+$'
} else {
$this.Type
$matchType
}
} else {
return ''
Expand Down

0 comments on commit 07457f6

Please sign in to comment.