From 8b42b28b70aac292f551856f7be232aca1522529 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 14 Mar 2021 14:35:29 +0100 Subject: [PATCH] Don't keep [trash] files when processing MS Office files --- libmat2/office.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libmat2/office.py b/libmat2/office.py index 5e4524d..7e8c60c 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -108,6 +108,7 @@ class MSOfficeParser(ZipParser): r'^ppt/slideMasters/_rels/slideMaster[0-9]+\.xml\.rels', })) self.files_to_omit = set(map(re.compile, { # type: ignore + r'^\[trash\]/', r'^customXml/', r'webSettings\.xml$', r'^docProps/custom\.xml$',