From 5f005e95798c78e0016c60df508f5c01ccb1134d Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Mon, 4 Feb 2019 00:16:22 +0100
Subject: [PATCH] Oups

---
 libmat2/office.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmat2/office.py b/libmat2/office.py
index db4b3e3..dfad3b3 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:
-- 
GitLab