From c12a7ad2fda1084c865428f41ea2f82964d4f920 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sun, 24 Sep 2023 16:42:34 +0200 Subject: [PATCH] Fixed search text preview --- src/app/main.home.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/main.home.js b/src/app/main.home.js index b83b596..4275c24 100644 --- a/src/app/main.home.js +++ b/src/app/main.home.js @@ -541,9 +541,11 @@ class HomePage { let newText = text.split("").reverse().join(""); if (newText.length > 30) { - newText = '...' + newText.slice(0, 30).split("").reverse().join(""); + newText = '...' + newText.slice(0, 30); } + newText = newText.split("").reverse().join(""); + return newText; } else { if (text.length > 30) {