From 32a0e89f72b254d7cf130c5c9050300e1e3e3a51 Mon Sep 17 00:00:00 2001 From: Bjarke Sporring Date: Thu, 15 Jan 2026 09:55:54 +0100 Subject: [PATCH] fix: let's just try to find a version inside the version string --- install.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 92cb841..b3dfa7e 100644 --- a/install.ps1 +++ b/install.ps1 @@ -131,7 +131,7 @@ function Install-Package { if ($MinVersion -and $version) { # Extract semantic version numbers only - stop before any non-digit/non-dot characters # This extracts "2.52.0" from "2.52.0.windows.1" - if ($version -match '^(\d+)(?:\.(\d+))?(?:\.(\d+))?') { + if ($version -match '(\d+)(?:\.(\d+))?(?:\.(\d+))?') { $installedVersion = $matches[1] try { if ([version]$installedVersion -lt [version]$MinVersion) { @@ -619,7 +619,6 @@ Write-Host " code --version" -ForegroundColor White Write-Success "Repository cloned successfully!" } -# Open in VSCode Write-Host " Opening in VSCode..." -ForegroundColor Cyan if (Get-Command code -ErrorAction SilentlyContinue) { & code $workshopPath