diff --git a/get-new-tool-versions/parsers/verify-added-to-image/verify-common-tool-parser.psm1 b/get-new-tool-versions/parsers/verify-added-to-image/verify-common-tool-parser.psm1 index 3723390..977ad12 100644 --- a/get-new-tool-versions/parsers/verify-added-to-image/verify-common-tool-parser.psm1 +++ b/get-new-tool-versions/parsers/verify-added-to-image/verify-common-tool-parser.psm1 @@ -8,8 +8,10 @@ function Search-ToolsVersionsNotOnImage { $stableReleases = (Invoke-RestMethod $ReleasesUrl) | Where-Object stable -eq $true $stableReleaseVersions = $stableReleases | ForEach-Object { - if ($ToolName -eq "Node") { - $_.$FilterParameter.split(".")[0] + ".0" + if ($ToolName -eq "Node") { + if ($_.lts) { + $_.$FilterParameter.split(".")[0] + ".0" + } } else { $_.$FilterParameter.split(".")[0,1] -join"." }