Fix excludes applying to subsequent filter lines with boards setting. #953

This commit is contained in:
ccd0 2016-06-04 14:22:29 -07:00
parent ef81e19107
commit 03830ef903

View File

@ -23,8 +23,10 @@ Filter =
boards = if boards is 'global' then null else boards.split(',') boards = if boards is 'global' then null else boards.split(',')
# boards to exclude from an otherwise global rule # boards to exclude from an otherwise global rule
if boards is null excludes = if boards is null
excludes = filter.match(/exclude:([^;]+)/)?[1].toLowerCase().split(',') or null filter.match(/exclude:([^;]+)/)?[1].toLowerCase().split(',') or null
else
null
if key in ['uniqueID', 'MD5'] if key in ['uniqueID', 'MD5']
# MD5 filter will use strings instead of regular expressions. # MD5 filter will use strings instead of regular expressions.