mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
beautify regexp
This commit is contained in:
@@ -97,7 +97,7 @@ foreach($pypyTool in $pypyTools)
|
|||||||
foreach($pypyVersion in $pypyTool.versions)
|
foreach($pypyVersion in $pypyTool.versions)
|
||||||
{
|
{
|
||||||
# Query latest PyPy version
|
# 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
|
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -match $filter} | Select-Object -First 1
|
||||||
|
|
||||||
if ($latestMajorPyPyVersion)
|
if ($latestMajorPyPyVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user