Skip to content

Commit

Permalink
Quote trimmed filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Dec 1, 2024
1 parent 075ea28 commit 5bbda44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepwell/src/services/file/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ impl FileService {
fn check_file_name(name: &mut String) -> Result<()> {
// Removes leading or trailing whitespace
regex_replace_in_place(name, &LEADING_TRAILING_SPACES, "");
debug!("Trimmed file name: {name}");
debug!("Trimmed file name: '{name}'");

// Disallow empty filenames
if name.is_empty() {
Expand Down

0 comments on commit 5bbda44

Please sign in to comment.