diff --git a/libmat2/office.py b/libmat2/office.py index db4b3e3db35bd92d21d4f82ad51a27dbe55f94fd..dfad3b371a5a5eec0195098b2094963af8eae2c6 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -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: