From 01b12cef880a3e8e96faa4e1df8df036a4573e0f Mon Sep 17 00:00:00 2001 From: Oleksii Skorobogatko Date: Thu, 19 Dec 2024 17:18:01 +0200 Subject: [PATCH] #4 additional trimming --- src/main/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/system.js b/src/main/system.js index 76819eb..887930c 100644 --- a/src/main/system.js +++ b/src/main/system.js @@ -207,7 +207,7 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) { * @return {string} */ function stringCut(str, limit, trail = '...') { - const cutStr = str.trim().split('\n')[0]; + const cutStr = str.trim().split('\n')[0].trim(); if (cutStr.length <= limit) { return cutStr;