diff --git a/mutalyzer/File.py b/mutalyzer/File.py index bbe3c2c43b6e5409e49e49e5d53bcf3dc16bf2c4..5851e7a50e31fa45e9aad72bbab4d89f9e987c3d 100644 --- a/mutalyzer/File.py +++ b/mutalyzer/File.py @@ -448,12 +448,14 @@ class File() : """ mimeType = self.getMimeType(handle) + if mimeType[0] == "text/plain": return self.__parseCsvFile(handle) - if mimeType[0] in ('application/vnd.ms-excel', - 'application/vnd.ms-office', - 'application/msword', - 'application/zip'): + if (mimeType[0] in ('application/vnd.ms-excel', + 'application/vnd.ms-office', + 'application/msword', + 'application/zip') or + mimeType[1] == 'Microsoft OOXML'): return self.__parseXlsFile(handle) if (mimeType[0] == 'application/vnd.oasis.opendocument.spreadsheet' or mimeType[1] in ('OpenDocument Spreadsheet',