Skip to content

Commit

Permalink
Fix version filter for packages without version (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Apr 17, 2023
1 parent 2308cb2 commit 00a1c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/private/Get-WinGetPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function Get-WinGetPackage {
# We apply additional package name filtering when using wildcards to make WinGet's wildcard behavior more PowerShell-esque
Cobalt\Get-WinGetPackage |
Where-Object {$Request.IsMatch($_.ID)} |
Where-Object {-Not $Request.Version -Or $Request.Version.Satisfies($_.Version)}
Where-Object {-Not $Request.Version -Or ($_.Version -And $Request.Version.Satisfies($_.Version))}
}

0 comments on commit 00a1c04

Please sign in to comment.