diff --git a/tools/ReleaseTools.psm1 b/tools/ReleaseTools.psm1 index f0e5665323..85ea6ca4a4 100644 --- a/tools/ReleaseTools.psm1 +++ b/tools/ReleaseTools.psm1 @@ -108,7 +108,9 @@ function Get-Bullets { 'resolved' ) - $IssueRegex = '(' + ($CloseKeywords -join '|') + ')\s+(?\D+)(?\d+)' + # NOTE: The URL matcher must be explicit because the body of a PR may + # contain other URLs with digits (like an image asset). + $IssueRegex = '(' + ($CloseKeywords -join '|') + ')\s+((https://github.com/PowerShell/(?(' + ([RepoNames]::Values -join '|') + '))/issues/)|#)(?\d+)' } process {