From 29e3404b2f82475d61fe0a16a5d3fa8efab91b7e Mon Sep 17 00:00:00 2001 From: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:41:18 +0800 Subject: [PATCH] Update eng\scripts\Initialize-VcpkgRelease.ps1 regex for quoted REF --- eng/scripts/Initialize-VcpkgRelease.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/scripts/Initialize-VcpkgRelease.ps1 b/eng/scripts/Initialize-VcpkgRelease.ps1 index b05db7223c..fb995591dc 100644 --- a/eng/scripts/Initialize-VcpkgRelease.ps1 +++ b/eng/scripts/Initialize-VcpkgRelease.ps1 @@ -69,7 +69,7 @@ $newContent = $portFileContent -replace '(SHA512\s+)0', "`${1}$sha512" if ($DailyReleaseRef) { Write-Verbose "Overriding REF with test release ref: $DailyReleaseRef" - $newContent = $newContent -replace '(?m)^(\s+)REF azure.*$', "`${1}REF $DailyReleaseRef" + $newContent = $newContent -replace '(?m)^(\s+)REF \"azure.*\"$', "`${1}REF $DailyReleaseRef" } $newContent | Set-Content $portfileLocation -NoNewLine