Skip to content

Commit 15850a4

Browse files
authored
Fix the PowerShell version regex matching, again (#3113)
1 parent 2b6e32e commit 15850a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/issue-mgmt/CloseDupIssues.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ foreach ($item in $issues)
4343
Write-Host "Issue: $root_url/$number" -ForegroundColor Green
4444

4545
if ($body.Contains("System.TypeLoadException: Could not load type 'System.Management.Automation.Subsystem.PredictionResult'") -and
46-
$body -match 'PSReadLine: 2\.2\.0-beta[12]' -and
47-
$body -match 'PowerShell: 7\.2\.\d')
46+
$body -match 'PSReadLine: 2\.2\.0-beta[12]')
4847
{
4948
$comment = @'
5049
This issue was fixed in 2.2.0-beta3 version of PSReadLine. You can fix this by upgrading to the latest [2.2.0-beta4 version of PSReadLine](https://www.powershellgallery.com/packages/PSReadLine/2.2.0-beta4). Instructions for doing so:

0 commit comments

Comments
 (0)