mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 22:12:12 +00:00
Resolve plain text format extensions
This commit is contained in:
1 file changed
+2
@@ -38,6 +38,7 @@ pub enum Format {
|
||||
Xlsx,
|
||||
TaggedText,
|
||||
Pptx,
|
||||
PlainText,
|
||||
Gcode,
|
||||
Studio,
|
||||
StencilCraft,
|
||||
@@ -134,6 +135,7 @@ pub fn from_extension(ext: &str) -> Option<Format> {
|
||||
"rtf" => Some(Format::Rtf),
|
||||
"xlsx" => Some(Format::Xlsx),
|
||||
"pptx" => Some(Format::Pptx),
|
||||
"txt" | "text" | "md" => Some(Format::PlainText),
|
||||
"studio" | "studio3" => Some(Format::Studio),
|
||||
"stencilcraft" => Some(Format::StencilCraft),
|
||||
"gcode" | "nc" => Some(Format::Gcode),
|
||||
|
||||
Reference in new issue
Block a user