Skip to content

Commit 1d11ed2

Browse files
committed
fix: make Marc discoverable again (when we search in second array, then we will always get - so we add +1 bias)
1 parent 30424a9 commit 1d11ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/SuffixUkkonenTree.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function makeTree<T>(compose: Array<PrepareDataParams<T>>) {
248248
// TODO: check with Hanno whether we restore the data correctly
249249
let offset = 0;
250250
for (let i = 0; i < indexes.length; i++) {
251-
const relativeIndex = index - offset;
251+
const relativeIndex = index - offset + 1;
252252
if (relativeIndex < indexes[i].length && relativeIndex >= 0) {
253253
const option = indexes[i][relativeIndex];
254254
if (option) {

0 commit comments

Comments
 (0)