aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjvoisin <julien.voisin@dustri.org>2021-03-14 14:41:40 +0100
committerjvoisin <julien.voisin@dustri.org>2021-03-14 14:41:40 +0100
commitd00ca800b2d4ba7f72db7c77cefe8da43e42f735 (patch)
tree6804e63ce3fabc75de40b8f6b7304f3303cc0b67
parent8b42b28b70aac292f551856f7be232aca1522529 (diff)
downloadexternal_mat2-d00ca800b2d4ba7f72db7c77cefe8da43e42f735.tar.gz
external_mat2-d00ca800b2d4ba7f72db7c77cefe8da43e42f735.tar.bz2
external_mat2-d00ca800b2d4ba7f72db7c77cefe8da43e42f735.zip
Keep sharedStrings.xml when processing MSOffice sheets
-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):
self.files_to_keep = set(map(re.compile, { # type: ignore
r'^\[Content_Types\]\.xml$',
r'^_rels/\.rels$',
+ r'^xl/sharedStrings\.xml$', # https://docs.microsoft.com/en-us/office/open-xml/working-with-the-shared-string-table
r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$',
r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$',
r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$',