Skip to content

Commit

Permalink
πŸ›(main): fix file extension deal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
W-Mai committed May 17, 2024
1 parent b51b35f commit 51039da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "icu_tool"
version = "0.1.11"
version = "0.1.11-1"
edition = "2021"
authors = ["Benign X", "W-Mai"]
homepage = "https://github.com/W-Mai/icu"
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fn deal_path_without_extension(
.ok_or("Unable to get parent folder of input file")?;

let file_name = file_path.file_name().unwrap_or_default();
let output_file_name = Path::new(file_name).with_extension("");
let output_file_name = Path::new(file_name).with_extension("PLACEHOLDER");
let mut output_file_path = file_folder.join(&output_file_name);

if let Some(output_folder) = output_folder {
Expand Down

0 comments on commit 51039da

Please sign in to comment.