summaryrefslogtreecommitdiff
path: root/libmat2/office.py
diff options
context:
space:
mode:
authorjvoisin2021-03-14 14:41:40 +0100
committerjvoisin2021-03-14 14:41:40 +0100
commitd00ca800b2d4ba7f72db7c77cefe8da43e42f735 (patch)
tree6804e63ce3fabc75de40b8f6b7304f3303cc0b67 /libmat2/office.py
parent8b42b28b70aac292f551856f7be232aca1522529 (diff)
Keep sharedStrings.xml when processing MSOffice sheets
Diffstat (limited to '')
-rw-r--r--libmat2/office.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index 7e8c60c..4cd9da2 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -87,6 +87,7 @@ class MSOfficeParser(ZipParser):
87 self.files_to_keep = set(map(re.compile, { # type: ignore 87 self.files_to_keep = set(map(re.compile, { # type: ignore
88 r'^\[Content_Types\]\.xml$', 88 r'^\[Content_Types\]\.xml$',
89 r'^_rels/\.rels$', 89 r'^_rels/\.rels$',
90 r'^xl/sharedStrings\.xml$', # https://docs.microsoft.com/en-us/office/open-xml/working-with-the-shared-string-table
90 r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$', 91 r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$',
91 r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$', 92 r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$',
92 r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$', 93 r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$',