From 96e639dfd3d414c33e966eb188c1b3a1fcdf8679 Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Fri, 6 Nov 2020 15:26:30 +0100
Subject: [PATCH] Fix a regexp for xsls files

This should increase a bit the compability with Excel files
---
 libmat2/office.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libmat2/office.py b/libmat2/office.py
index 3a06624..1ef29c5 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -93,8 +93,8 @@ class MSOfficeParser(ZipParser):
             r'^(?:word|ppt|xl)/styles\.xml$',
             # TODO: randomize axId ( https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/089f849f-fcd6-4fa0-a281-35aa6a432a16 )
             r'^(?:word|ppt|xl)/charts/chart[0-9]*\.xml$',
-            r'^xl//workbook.xml$',
-            r'^xl//worksheets/sheet[0-9]+.xml$',
+            r'^xl/workbook\.xml$',
+            r'^xl/worksheets/sheet[0-9]+\.xml$',
             r'^ppt/slideLayouts/_rels/slideLayout[0-9]+\.xml\.rels$',
             r'^ppt/slideLayouts/slideLayout[0-9]+\.xml$',
             r'^(?:word|ppt|xl)/tableStyles\.xml$',
-- 
GitLab