From e183946520fda2bcae0328865b3bc4e956086f67 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 18 Sep 2020 15:24:13 +0300 Subject: [PATCH] beautify regexp --- images/win/scripts/Installers/Install-PyPy.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-PyPy.ps1 b/images/win/scripts/Installers/Install-PyPy.ps1 index db5d89753..af1b11820 100644 --- a/images/win/scripts/Installers/Install-PyPy.ps1 +++ b/images/win/scripts/Installers/Install-PyPy.ps1 @@ -97,7 +97,7 @@ foreach($pypyTool in $pypyTools) foreach($pypyVersion in $pypyTool.versions) { # Query latest PyPy version - $filter = '{0}{1}-v[0-9]+\.[0-9]+\.[0-9]+-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform + $filter = '{0}{1}-v\d+\.\d+\.\d+-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform $latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -match $filter} | Select-Object -First 1 if ($latestMajorPyPyVersion)