Update dist and CHANGELOG for v3.0.2

This commit is contained in:
Michal Dorner 2024-03-02 23:11:12 +01:00
parent cf89abdbae
commit de90cc6fb3
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
3 changed files with 62 additions and 6 deletions

View file

@ -73,7 +73,7 @@ export class Filter {
rules: {[key: string]: FilterRuleItem[]} = {}
// Creates instance of Filter and load rules from YAML if it's provided
constructor(yaml?: string, public readonly filterConfig?: FilterConfig) {
constructor(yaml?: string, readonly filterConfig?: FilterConfig) {
if (yaml) {
this.load(yaml)
}
@ -104,7 +104,7 @@ export class Filter {
}
private isMatch(file: File, patterns: FilterRuleItem[]): boolean {
const aPredicate = (rule: Readonly<FilterRuleItem>) => {
const aPredicate = (rule: Readonly<FilterRuleItem>): boolean => {
return (rule.status === undefined || rule.status.includes(file.status)) && rule.isMatch(file.filename)
}
if (this.filterConfig?.predicateQuantifier === 'every') {