Skip to content

Commit

Permalink
Merge pull request #150 from theohbrothers/enhancement/generate-impro…
Browse files Browse the repository at this point in the history
…ve-tags-pattern-for-get-repositoryreleaseprevious

Enhancement (generate): Improve tags pattern for `Get-RepositoryReleasePrevious`
  • Loading branch information
joeltimothyoh authored Jul 17, 2024
2 parents 2da43d9 + eb2d522 commit c918b4c
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 c918b4c

Please sign in to comment.