Skip to content

Commit

Permalink
avoid double spaces in filenames. close #2719
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 4, 2024
1 parent 016591b commit 0b3a5a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@ public static String sanitizeFileName(String fileName) {
name = name.replace(">", "");
name = name.replace("<", "");
name = name.replace("|", "_");
while(name.contains(" "))
name = name.replace(" ", " ");
return name.trim();
}

Expand Down

0 comments on commit 0b3a5a3

Please sign in to comment.