Add regex search for "must contain" section

Not tested right now due to this section not being present in the guide.
pull/1/head
Robert Dailey 3 years ago
parent 061c4dcde3
commit 61d358ff61

@ -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)),
)

Loading…
Cancel
Save