diff --git a/eng/common/scripts/Detect-Api-Changes.ps1 b/eng/common/scripts/Detect-Api-Changes.ps1 index 8b8121df65d5..82911ce26f8c 100644 --- a/eng/common/scripts/Detect-Api-Changes.ps1 +++ b/eng/common/scripts/Detect-Api-Changes.ps1 @@ -104,7 +104,7 @@ if (!($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiR $responses = @{} $packageProperties = Get-ChildItem -Recurse -Force "$configFileDir" ` - | Where-Object { $_.Extension -eq '.json' -and $_.FullName -notmatch '\\_.*?\\' } + | Where-Object { $_.Extension -eq '.json' -and $_.FullName -notmatch '[/\\]_.*?[/\\]' } Write-Host "Package Properties: $($packageProperties.Count)" Write-Host "$packageProperties"