Skip to content

Commit

Permalink
Enhancement (generate): Improve tags pattern for `Get-RepositoryRelea…
Browse files Browse the repository at this point in the history
…sePrevious`
  • Loading branch information
joeltimothyoh committed Jul 17, 2024
1 parent 2da43d9 commit eb2d522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Get-RepositoryReleasePrevious {
# Retrieve previous release tags of the specified ref within the same git tree
"Retrieving info on previous release tags" | Write-Verbose
$tagsPreviousInfo = (git --no-pager log "$Ref" --date-order --simplify-by-decoration --pretty="format:%H %D") -split "`n" | % {
if ($_ -match '\s+tag:\s+(v\d+\.\d+\.\d+)(,|$)') {
if ($_ -match '\s+tag:\s+(v\d+\.\d+\.\d+)(,\s+|$)') {
$_
}
}
Expand Down

0 comments on commit eb2d522

Please sign in to comment.