Corrects the matching logic for g3 comparison check, previously more matches were found than were correct. PR Close #39087
This commit is contained in:
parent
bb19e61848
commit
afce0f5038
@ -119,6 +119,6 @@ export async function printG3Comparison(git: GitClient) {
|
|||||||
/** Determine whether the file name passes both include and exclude checks. */
|
/** Determine whether the file name passes both include and exclude checks. */
|
||||||
function checkMatchAgainstIncludeAndExclude(
|
function checkMatchAgainstIncludeAndExclude(
|
||||||
file: string, includes: string[], excludes: string[]) {
|
file: string, includes: string[], excludes: string[]) {
|
||||||
return multimatch(multimatch(file, includes), excludes, {flipNegate: true}).length !== 0;
|
return multimatch(file, includes).length >= 1 && multimatch(file, excludes).length === 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user