Skip to content

Commit

Permalink
#4 additional trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
skoro committed Dec 19, 2024
1 parent 571fc63 commit 01b12ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 01b12ce

Please sign in to comment.