Skip to content

Commit f7213cb

Browse files
committed
fix(dev-infra): correct matching logic for g3 comparison (angular#39084)
Corrects the matching logic for g3 comparison check, previously more matches were found than were correct. PR Close angular#39084
1 parent 4bce213 commit f7213cb

File tree

1 file changed

+1
-1
lines changed
  • dev-infra/caretaker/check

1 file changed

+1
-1
lines changed

dev-infra/caretaker/check/g3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ export async function printG3Comparison(git: GitClient) {
119119
/** Determine whether the file name passes both include and exclude checks. */
120120
function checkMatchAgainstIncludeAndExclude(
121121
file: string, includes: string[], excludes: string[]) {
122-
return multimatch(multimatch(file, includes), excludes, {flipNegate: true}).length !== 0;
122+
return multimatch(file, includes).length >= 1 && multimatch(file, excludes).length === 0;
123123
}
124124
}

0 commit comments

Comments
 (0)