Commit 5f005e95 authored by jvoisin's avatar jvoisin


parent 6b4e343a
Pipeline #22395 passed with stages
in 4 minutes and 28 seconds
......@@ -300,7 +300,7 @@ class MSOfficeParser(ArchiveBasedAbstractParser):
Yes, I know that parsing xml with regexp ain't pretty,
be my guest and fix it if you want.
if not file_path.startswith('docProps/') and not file_path.endswith('.xml'):
if not file_path.startswith('docProps/') or not file_path.endswith('.xml'):
return {}
with open(full_path, encoding='utf-8') as f:
Markdown is supported
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