From 59c9061306aa052ef8fe5434fb3d0f6b038267d0 Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Mon, 14 Aug 2023 11:16:23 +0300 Subject: [PATCH] nodejs: fix max length (a06aa8c8b38388326692a66d5ebce5b19375755d) --- web/documentserver-example/nodejs/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/documentserver-example/nodejs/app.js b/web/documentserver-example/nodejs/app.js index 3ffa4e35..84661abf 100755 --- a/web/documentserver-example/nodejs/app.js +++ b/web/documentserver-example/nodejs/app.js @@ -718,12 +718,12 @@ app.post('/track', async (req, res) => { // define a handler for tracking file c if (isSubmitForm) { // new file if (newFileName) { - correctName = req.DocManager.getCorrectName(`${fileUtility.getFileName(fileName, true)} - -form${downloadExt}`, userAddress); + correctName = req.DocManager.getCorrectName( + `${fileUtility.getFileName(fileName, true)}-form${downloadExt}`, userAddress); } else { const ext = fileUtility.getFileExtension(fileName); - correctName = req.DocManager.getCorrectName(`${fileUtility.getFileName(fileName, true)} - -form${ext}`, userAddress); + correctName = req.DocManager.getCorrectName( + `${fileUtility.getFileName(fileName, true)}-form${ext}`, userAddress); } forcesavePath = req.DocManager.storagePath(correctName, userAddress); } else {