Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit ce37139

Browse files
committed
fix: highlighting in notebook search results
1 parent fd874c5 commit ce37139

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/search/searchHtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function searchHtml(
4646
// Position the cursor at the first match on the line.
4747
character = start
4848
}
49-
const end = start + length - 1
49+
const end = start + length
5050
highlightedPreview.push(escapeHtml(preview.slice(index, start)))
5151
highlightedPreview.push('<mark>')
5252
highlightedPreview.push(escapeHtml(preview.slice(start, end)))

0 commit comments

Comments
 (0)