mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 22:12:12 +00:00
Recognize legacy Word extension in shared registry
This commit is contained in:
1 file changed
+3
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user