Skip to content

Commit 8e6893c

Browse files
authored
Fix the regex matching in the issue-triage script (#3082)
1 parent 835bfd2 commit 8e6893c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/issue-mgmt/CloseDupIssues.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ If you want to remove that beta version of PSReadLine and use the 2.1.0 version
6060
}
6161
elseif ($title.Contains('https://github.com/PowerShell/PSReadLine/issues/new') -or
6262
$body.Contains('https://github.com/PowerShell/PSReadLine/issues/new') -or
63-
$body -match 'PSReadLine: 2\.\d\.\d(-\w+)?' -or
64-
$body -match 'PSReadline version: 2\.\d\.\d(-\w+)?' -or
65-
$body -match 'PowerShell: 7\.\d\.\d' -or
66-
$body -match 'PS version: 7\.\d\.\d')
63+
$body -match 'PSReadLine( version)?: (2\.[01]\.\d$)|(2\.[2-5]\.\d(-\w+)?$)' -or
64+
$body -match '(PowerShell|PS version): 7\.\d\.\d')
6765
{
6866
## The issue reported a recent version of PSReadLine, so leave it as is.
6967
continue

0 commit comments

Comments
 (0)