Skip to content

Commit a5ca37d

Browse files
authored
Fix ExcludePath filter in AdditionalValidationPackagesFromPackageSetFn (Azure#48291)
1 parent 11d728f commit a5ca37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function Get-dotnet-AdditionalValidationPackagesFromPackageSet {
167167
# The targetedFiles needs to filter out anything in the ExcludePaths
168168
# otherwise it'll end up processing things below that it shouldn't be.
169169
foreach ($excludePath in $diffObj.ExcludePaths) {
170-
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath) }
170+
$targetedFiles = $targetedFiles | Where-Object { -not $_.StartsWith($excludePath.TrimEnd("/") + "/") }
171171
}
172172

173173
# this section will identify

0 commit comments

Comments
 (0)