Classify legacy Excel extensions in shared registry

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 01:53:37 -05:00
1 parent 71337f6772
commit 8abfa9d0f1
1 file changed
+3
+3
View File
@@ -47,6 +47,8 @@ pub enum Format {
PlainText,
Csv,
Tsv,
/// Legacy binary Excel workbooks, identified by extension only.
LegacyExcel,
Gcode,
Studio,
StencilCraft,
@@ -218,6 +220,7 @@ pub fn from_extension(ext: &str) -> Option<Format> {
"txt" | "text" | "md" => Some(Format::PlainText),
"csv" => Some(Format::Csv),
"tsv" | "tab" => Some(Format::Tsv),
"xls" | "xlsm" => Some(Format::LegacyExcel),
"studio" | "studio3" => Some(Format::Studio),
"stencilcraft" => Some(Format::StencilCraft),
"gcode" | "nc" => Some(Format::Gcode),