From 61d358ff61d7605425d3a08beec01bf3655c72fa Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Fri, 5 Feb 2021 16:40:02 -0600 Subject: [PATCH] Add regex search for "must contain" section Not tested right now due to this section not being present in the guide. --- trash.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trash.py b/trash.py index fd85ff5e..1c67b5c6 100644 --- a/trash.py +++ b/trash.py @@ -25,6 +25,7 @@ score_regex = re.compile(r'score.*?\[([-\d]+)\]', re.IGNORECASE) # included_preferred_regex = re.compile(r'include preferred', re.IGNORECASE) # not_regex = re.compile(r'not', re.IGNORECASE) filter_regexes = ( + (Filter.Required, re.compile(r'must contain', re.IGNORECASE)), (Filter.Ignored, re.compile(r'must not contain', re.IGNORECASE)), (Filter.Preferred, re.compile(r'preferred', re.IGNORECASE)), )