From 03830ef90379ded705162188ff06429353fdf60a Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 4 Jun 2016 14:22:29 -0700 Subject: [PATCH] Fix excludes applying to subsequent filter lines with boards setting. #953 --- src/Filtering/Filter.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Filtering/Filter.coffee b/src/Filtering/Filter.coffee index 739f7bfc5..079243745 100644 --- a/src/Filtering/Filter.coffee +++ b/src/Filtering/Filter.coffee @@ -23,8 +23,10 @@ Filter = boards = if boards is 'global' then null else boards.split(',') # boards to exclude from an otherwise global rule - if boards is null - excludes = filter.match(/exclude:([^;]+)/)?[1].toLowerCase().split(',') or null + excludes = if boards is null + filter.match(/exclude:([^;]+)/)?[1].toLowerCase().split(',') or null + else + null if key in ['uniqueID', 'MD5'] # MD5 filter will use strings instead of regular expressions.