Skip to content

Commit 4756e93

Browse files
authored
fix: update regex to support < symbol in version (#25)
1 parent 4a1dcee commit 4756e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/Get-Updates.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function Get-Updates {
9090
$WinGetOutput = & winget upgrade
9191
$WinGetUpdates = @(
9292
foreach ($line in ($WinGetOutput | Select-Object -Skip 1)) {
93-
if ($line -match '^(.*?) +([\w\d\.\+-_]+) +([\d\.\+-_]*?|Unknown) +([\d\.-]*|Unknown) +winget$') {
93+
if ($line -match '^(.*?) +([\w\d\.\+-_]+) +(?:< |)([\d\.\+-_]*?|Unknown) +([\d\.-]*|Unknown) +winget$') {
9494
[PSCustomObject]@{
9595
PackageId = $Matches[2]
9696
CurrentVersion = $Matches[3]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy