From 04027fe4fbeb36d4fe3262abb224a203ffe3e7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Fri, 13 Dec 2024 14:33:07 +0100 Subject: [PATCH] [repo] Fix FindComponentOwners for latest project in component_owners --- build/scripts/build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/build.psm1 b/build/scripts/build.psm1 index 9b7d560b60..8ba3b4d055 100644 --- a/build/scripts/build.psm1 +++ b/build/scripts/build.psm1 @@ -125,7 +125,7 @@ function FindComponentOwners { { $projectName = [System.IO.Path]::GetFileName($projectDir) - $match = [regex]::Match($componentOwnersContent, "src\/$projectName\/:([\w\W\s]*?)src") + $match = [regex]::Match($componentOwnersContent, "src\/$projectName\/:([\w\W\s]*?)(src|test)") if ($match.Success -eq $true) { $matches = [regex]::Matches($match.Groups[1].Value, "-\s*(.*)")