From d4274d54d2ae96815ba39fbe12a2ce92a7ee01ba Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Tue, 12 Aug 2025 17:33:26 -0700 Subject: [PATCH] fix: Microsoft Update Catalog now includes the windows version information in the KB article title. This caused an issue where parsing the KB article was failing. Fixed the regex to accomdate this. --- FFUDevelopment/BuildFFUVM.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index 886246e..b0b536c 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -2529,7 +2529,7 @@ function Get-KBLink { # Extract the first KB article ID from the HTML content and store it globally # Edge and Defender do not have KB article IDs if ($Name -notmatch 'Defender|Edge') { - if ($results.Content -match '>\s*([^\(<]+)\(KB(\d+)\)\s*<') { + if ($results.Content -match '>\s*([^\(<]+)\(KB(\d+)\)(?:\s*\([^)]+\))*\s*<') { $kbArticleID = "KB$($matches[2])" $global:LastKBArticleID = $kbArticleID WriteLog "Found KB article ID: $kbArticleID"