Fix CI errors

This commit is contained in:
2026-06-22 23:37:06 +09:30
parent 5df9169705
commit 410c953933
8 changed files with 158 additions and 30 deletions
@@ -10,7 +10,7 @@
const segments = $derived(getSegments(text, term, matches));
// Build highlight map (copied and adapted from highlightMatch)
function getSegments(text: string, term: string, matches?: readonly FuseResultMatch[]) {
function getSegments(text: string, term: string, matches = undefined) {
if (!term.trim() || !matches || matches.length === 0) return [{ text, highlight: false }];
try {