From 4f17a868dcf7c6a8343dbdc578d47f7ba8609550 Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Fri, 20 Sep 2024 23:04:36 -0500 Subject: [PATCH] Fix trailing whitespace (#14) --- src/AnyPackage.Pkgx.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnyPackage.Pkgx.psm1 b/src/AnyPackage.Pkgx.psm1 index 416750c..6829e1e 100644 --- a/src/AnyPackage.Pkgx.psm1 +++ b/src/AnyPackage.Pkgx.psm1 @@ -26,7 +26,7 @@ class PkgxProvider : PackageProvider, IFindPackage, IGetPackage, IInstallPackage $pattern = 'exec pkgx \+(?[\w\./]+)((?:[@^])(?[\d\.]+))?' $packages = Select-String -Path ./.local/bin/* -Pattern $pattern | Select-Object -ExpandProperty Matches -Unique - + $basePath = '~/.pkgx' foreach ($package in $packages) { @@ -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)