mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-25 04:51:29 +02:00
highlight boundary always produces preceding ellipsis #508
This commit is contained in:
2
dist/module-debug/document/highlight.js
vendored
2
dist/module-debug/document/highlight.js
vendored
@@ -433,7 +433,7 @@ export function highlight_fields(query, result, index, pluck, config) {
|
||||
|
||||
str = "";
|
||||
for (let k = 0, tmp; k < final.length; k++) {
|
||||
tmp = (k && seamless[k] ? " " : (k && !ellipsis ? " " : "") + ellipsis) + final[k];
|
||||
tmp = (seamless[k] ? k ? " " : "" : (k && !ellipsis ? " " : "") + ellipsis) + final[k];
|
||||
str += tmp;
|
||||
}
|
||||
if (ellipsis && !seamless[final.length]) {
|
||||
|
Reference in New Issue
Block a user