Skip to content

Commit 99cddaf

Browse files
committed
highlight boundary always produces preceding ellipsis #508
1 parent c28f52c commit 99cddaf

22 files changed

+82
-35
lines changed

dist/flexsearch.bundle.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* FlexSearch.js v0.8.205 (Bundle/Debug)
2+
* FlexSearch.js v0.8.206 (Bundle/Debug)
33
* Author and Copyright: Thomas Wilkerling
44
* Licence: Apache-2.0
55
* Hosted by Nextapps GmbH
@@ -1299,7 +1299,7 @@ function bb(a, c, b, e, d, f, g) {
12991299
}
13001300
q = "";
13011301
for (let y = 0, J; y < D.length; y++) {
1302-
J = (y && G[y] ? " " : (y && !d ? " " : "") + d) + D[y], q += J;
1302+
J = (G[y] ? y ? " " : "" : (y && !d ? " " : "") + d) + D[y], q += J;
13031303
}
13041304
d && !G[D.length] && (q += d);
13051305
}

dist/flexsearch.bundle.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/flexsearch.bundle.module.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* FlexSearch.js v0.8.205 (Bundle/Module/Debug)
2+
* FlexSearch.js v0.8.206 (Bundle/Module/Debug)
33
* Author and Copyright: Thomas Wilkerling
44
* Licence: Apache-2.0
55
* Hosted by Nextapps GmbH
@@ -1298,7 +1298,7 @@ function bb(a, c, b, e, d, f, g) {
12981298
}
12991299
q = "";
13001300
for (let y = 0, J; y < D.length; y++) {
1301-
J = (y && G[y] ? " " : (y && !d ? " " : "") + d) + D[y], q += J;
1301+
J = (G[y] ? y ? " " : "" : (y && !d ? " " : "") + d) + D[y], q += J;
13021302
}
13031303
d && !G[D.length] && (q += d);
13041304
}

dist/flexsearch.bundle.module.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/flexsearch.compact.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* FlexSearch.js v0.8.205 (Bundle/Debug)
2+
* FlexSearch.js v0.8.206 (Bundle/Debug)
33
* Author and Copyright: Thomas Wilkerling
44
* Licence: Apache-2.0
55
* Hosted by Nextapps GmbH
@@ -735,7 +735,7 @@ function Ba(a, c, b, e, d, f, g, k) {
735735
}
736736
n = "";
737737
for (let q = 0, G; q < z.length; q++) {
738-
G = (q && r[q] ? " " : (q && !d ? " " : "") + d) + z[q], n += G;
738+
G = (r[q] ? q ? " " : "" : (q && !d ? " " : "") + d) + z[q], n += G;
739739
}
740740
d && !r[z.length] && (n += d);
741741
}

dist/flexsearch.compact.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/flexsearch.compact.module.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* FlexSearch.js v0.8.205 (Bundle/Debug)
2+
* FlexSearch.js v0.8.206 (Bundle/Debug)
33
* Author and Copyright: Thomas Wilkerling
44
* Licence: Apache-2.0
55
* Hosted by Nextapps GmbH
@@ -734,7 +734,7 @@ function Ba(a, c, b, e, d, f, g, k) {
734734
}
735735
n = "";
736736
for (let q = 0, G; q < z.length; q++) {
737-
G = (q && r[q] ? " " : (q && !d ? " " : "") + d) + z[q], n += G;
737+
G = (r[q] ? q ? " " : "" : (q && !d ? " " : "") + d) + z[q], n += G;
738738
}
739739
d && !r[z.length] && (n += d);
740740
}

0 commit comments

Comments
 (0)