Skip to content

Commit

Permalink
Merge pull request #82 from LilyRose2798/replace-reserved-characters
Browse files Browse the repository at this point in the history
Add replacment of reserved filename chars from comment
  • Loading branch information
Szum123321 authored Jan 9, 2022
2 parents 93f2b31 + c4549e8 commit 18b7c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private String getFileName(){
LocalDateTime now = LocalDateTime.now();

return Utilities.getDateTimeFormatter().format(now) +
(context.getComment() != null ? "#" + context.getComment().replace("#", "") : "") +
(context.getComment() != null ? "#" + context.getComment().replaceAll("[\\\\/:*?\"<>|#]", "") : "") +
config.get().format.getCompleteString();
}
}

0 comments on commit 18b7c2b

Please sign in to comment.