From 6c773dd8e399e26397c6504d2914c8eaecac16c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org>
Date: Wed, 1 Jan 2025 18:00:34 +0100
Subject: [PATCH] fix filenames

---
 VERSION                                   | 2 +-
 frontend/src/components/canvas/Canvas.vue | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/VERSION b/VERSION
index edcfe40..b70ae75 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.14.0
+2.14.1
diff --git a/frontend/src/components/canvas/Canvas.vue b/frontend/src/components/canvas/Canvas.vue
index f73b1b6..de68381 100644
--- a/frontend/src/components/canvas/Canvas.vue
+++ b/frontend/src/components/canvas/Canvas.vue
@@ -48,6 +48,13 @@ export default {
           window.fileName instanceof String) &&
         window.fileName.length >= 1
       ) {
+        window.fileName = (
+          window.
+          fileName.
+          replace(/\r\n|\n/, ' _ ').
+          replace(/\./, '_')
+        );
+
         link.download = window.fileName;
       } else {
         const date = new Date().toLocaleString();
-- 
GitLab