From c2048c5039581256f5fb1876dcd48942e82efa56 Mon Sep 17 00:00:00 2001 From: Szum123321 Date: Tue, 29 Nov 2022 22:35:06 +0100 Subject: [PATCH] ehhhhhhhh --- .../textile_backup/core/create/MakeBackupRunnable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java b/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java index c07e9fc..d0bbb8d 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/MakeBackupRunnable.java @@ -133,6 +133,8 @@ public class MakeBackupRunnable implements Callable { } private String getFileName() { - return Utilities.getDateTimeFormatter().format(context.startDate()) + (context.comment() != null ? "#" + context.comment().replaceAll("[\\\\/:*?\"<>|#]", "") : "") + config.get().format.getCompleteString(); + return Utilities.getDateTimeFormatter().format(context.startDate()) + + (context.comment() != null ? "#" + context.comment().replaceAll("[\\\\/:*?\"<>|#]", "") : "") + + config.get().format.getCompleteString(); } }