summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/office.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index 0c9caa8..f3a5b22 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -384,7 +384,7 @@ class LibreOfficeParser(ArchiveBasedAbstractParser):
384 return {} 384 return {}
385 with open(full_path, encoding='utf-8') as f: 385 with open(full_path, encoding='utf-8') as f:
386 try: 386 try:
387 results = re.findall(r"<((?:meta|dc|cp).+?)>(.+)</\1>", f.read(), re.I|re.M) 387 results = re.findall(r"<((?:meta|dc|cp).+?)[^>]*>(.+)</\1>", f.read(), re.I|re.M)
388 return {k:v for (k, v) in results} 388 return {k:v for (k, v) in results}
389 except (TypeError, UnicodeDecodeError): # We didn't manage to parse the xml file 389 except (TypeError, UnicodeDecodeError): # We didn't manage to parse the xml file
390 # We didn't manage to parse the xml file 390 # We didn't manage to parse the xml file