Skip to content

Commit

Permalink
Fixed search text preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kuogi committed Sep 24, 2023
1 parent cbc7920 commit c12a7ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/main.home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c12a7ad

Please sign in to comment.