Skip to content

Commit

Permalink
Fix trailing whitespace (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Sep 21, 2024
1 parent 8eba0df commit 4f17a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AnyPackage.Pkgx.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PkgxProvider : PackageProvider, IFindPackage, IGetPackage, IInstallPackage
$pattern = 'exec pkgx \+(?<name>[\w\./]+)((?:[@^])(?<version>[\d\.]+))?'
$packages = Select-String -Path ./.local/bin/* -Pattern $pattern |
Select-Object -ExpandProperty Matches -Unique

$basePath = '~/.pkgx'

foreach ($package in $packages) {
Expand All @@ -48,7 +48,7 @@ class PkgxProvider : PackageProvider, IFindPackage, IGetPackage, IInstallPackage
}

$version = $resolvedVersion -replace 'v', ''

if ($request.IsMatch($name, $version)) {
$packageInfo = [PackageInfo]::new($name, $version, $request.ProviderInfo)
$request.WritePackage($packageInfo)
Expand Down

0 comments on commit 4f17a86

Please sign in to comment.