summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
authorjvoisin2021-03-14 14:35:29 +0100
committerjvoisin2021-03-14 14:35:29 +0100
commit8b42b28b70aac292f551856f7be232aca1522529 (patch)
tree7abb4fc2a2fcfc1397fa2c11be3331322c5a1818 /libmat2
parente2362b8620c1321fc93204a1830b60f48d3f43a2 (diff)
Don't keep [trash] files when processing MS Office files
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/office.py1
1 files changed, 1 insertions, 0 deletions
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):
108 r'^ppt/slideMasters/_rels/slideMaster[0-9]+\.xml\.rels', 108 r'^ppt/slideMasters/_rels/slideMaster[0-9]+\.xml\.rels',
109 })) 109 }))
110 self.files_to_omit = set(map(re.compile, { # type: ignore 110 self.files_to_omit = set(map(re.compile, { # type: ignore
111 r'^\[trash\]/',
111 r'^customXml/', 112 r'^customXml/',
112 r'webSettings\.xml$', 113 r'webSettings\.xml$',
113 r'^docProps/custom\.xml$', 114 r'^docProps/custom\.xml$',