Commit 2d3bc4ad authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix for #162.

parent f823122b
Pipeline #51096 canceled with stages
in 9 minutes and 27 seconds
...@@ -139,7 +139,7 @@ class MatchingParser(Parser): ...@@ -139,7 +139,7 @@ class MatchingParser(Parser):
if self._mainfile_contents_re.search(decoded_buffer) is None: if self._mainfile_contents_re.search(decoded_buffer) is None:
return False return False
return self._mainfile_mime_re.match(mime) is not None and \ return self._mainfile_mime_re.match(mime) is not None and \
self._mainfile_name_re.match(filename) is not None and \ self._mainfile_name_re.fullmatch(filename) is not None and \
(compression is None or compression in self._supported_compressions) (compression is None or compression in self._supported_compressions)
def __repr__(self): def __repr__(self):
......
...@@ -72,7 +72,7 @@ for parser, mainfile in parser_examples: ...@@ -72,7 +72,7 @@ for parser, mainfile in parser_examples:
parser_examples = fixed_parser_examples parser_examples = fixed_parser_examples
correct_num_output_files = 41 correct_num_output_files = 38
class TestLocalBackend(object): class TestLocalBackend(object):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment