Add replacment of reserved filename chars from comment
parent
93f2b31e2a
commit
c4549e8f0a
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue