diff --git a/crates/file-formats/src/lib.rs b/crates/file-formats/src/lib.rs index 6029757de..3c6001673 100644 --- a/crates/file-formats/src/lib.rs +++ b/crates/file-formats/src/lib.rs @@ -34,6 +34,8 @@ pub enum Format { Idml, DesignCraft, Docx, + /// Legacy OLE Compound File Word document; identified by its extension only. + LegacyDoc, Rtf, Xlsx, TaggedText, @@ -132,6 +134,7 @@ pub fn from_extension(ext: &str) -> Option { "idml" => Some(Format::Idml), "designcraft" | "dcdoc" => Some(Format::DesignCraft), "docx" => Some(Format::Docx), + "doc" => Some(Format::LegacyDoc), "rtf" => Some(Format::Rtf), "xlsx" => Some(Format::Xlsx), "pptx" => Some(Format::Pptx),