Merge pull request #82 from LilyRose2798/replace-reserved-characters

Add replacment of reserved filename chars from comment
2.x-1.17
Szum123321 2022-01-09 15:32:35 +01:00 committed by GitHub
commit 18b7c2b9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class MakeBackupRunnable implements Runnable {
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
return Utilities.getDateTimeFormatter().format(now) + return Utilities.getDateTimeFormatter().format(now) +
(context.getComment() != null ? "#" + context.getComment().replace("#", "") : "") + (context.getComment() != null ? "#" + context.getComment().replaceAll("[\\\\/:*?\"<>|#]", "") : "") +
config.get().format.getCompleteString(); config.get().format.getCompleteString();
} }
} }