changeset 4418:c0bfe7283384

pdftool: remove .replace()
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 18 Sep 2019 13:47:52 +0200
parents ad7b06f2f2ad
children 72de81520a6d
files client/src/components/Pdftool.vue
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Wed Sep 18 13:24:00 2019 +0200
+++ b/client/src/components/Pdftool.vue	Wed Sep 18 13:47:52 2019 +0200
@@ -206,13 +206,7 @@
         }
       }
 
-      filename =
-        filename
-          .replace(/[^\w-ßäÄöÖüÜ]/gi, "") // remove everything but wordchars and dash
-          .toLowerCase() +
-        "-exported" +
-        date +
-        ".pdf";
+      filename = filename.toLowerCase() + "-exported" + date + ".pdf";
       return filename;
     }
   },