This commit is contained in:
Jacky Zhao committed 2023-08-20 20:48:35 -07:00
1 parent 4e42d52e16
commit 777ff51c7a
1 file changed
+2 -1
+2 -1
View File
@@ -58,7 +58,8 @@ function highlight(searchTerm: string, text: string, trim?: boolean) {
}) })
.join(" ") .join(" ")
return `${startIndex === 0 ? "" : "..."}${slice}${endIndex === tokenizedText.length - 1 ? "" : "..." return `${startIndex === 0 ? "" : "..."}${slice}${
endIndex === tokenizedText.length - 1 ? "" : "..."
}` }`
} }