diff --git a/src/subcommand/file.rs b/src/subcommand/file.rs index da8d589120..1c0d58e270 100644 --- a/src/subcommand/file.rs +++ b/src/subcommand/file.rs @@ -25,8 +25,8 @@ impl File { filename.set_file_name(format!( "{}-{}{}", - file_number, filename.file_stem().unwrap().to_str().unwrap(), + file_number, filename.extension().unwrap().to_str().unwrap() )); file_number += 1;