Skip to content
Snippets Groups Projects
Commit 5f005e95 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Oups

parent 6b4e343a
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment