From 4d6da6a9b77e071e1af92cd9cdf3c938d3c1118c Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 28 Jan 2023 16:37:17 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20=D1=84=D0=B0?= =?UTF-8?q?=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/WebWorker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core/WebWorker.js b/server/core/WebWorker.js index 6b408e5..657d177 100644 --- a/server/core/WebWorker.js +++ b/server/core/WebWorker.js @@ -453,7 +453,8 @@ class WebWorker { || utils.makeValidFileNameOrEmpty(at[0]) || utils.makeValidFileNameOrEmpty(at[1]) || downFileName; - downFileName = downFileName.substring(0, 50); + if (downFileName.length > 50) + downFileName = `${downFileName.substring(0, 50)}_`; const ext = `.${book.ext}`; if (downFileName.substring(downFileName.length - ext.length) != ext)