Recognize legacy Word extension in shared registry

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 01:26:09 -05:00
1 parent 32529b94e8
commit 1f9c271f7d
1 file changed
+3
+3
View File
@@ -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<Format> {
"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),