Fix bug in score regex

It would allow matches like `[-10-00]` (a hyphen anywhere in the middle
of a number)
pull/1/head
Robert Dailey 3 years ago
parent 61d358ff61
commit 851d47d244

@ -21,7 +21,7 @@ args = argparser.parse_args()
Filter = Enum('FilterType', 'Preferred Required Ignored')
header_regex = re.compile(r'^(#+)\s([\w\s\d]+)\s*$')
score_regex = re.compile(r'score.*?\[([-\d]+)\]', re.IGNORECASE)
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 = (

Loading…
Cancel
Save