feat: Only show those terms that indeed have the query in them

This commit is contained in:
Dendy 2025-09-06 11:59:07 +02:00
parent 99fedadd81
commit a2c07e5d2f
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ class AnkiService
if (!$note instanceof SentenceNote) continue;
foreach ($note->getTerms() as $term) {
if (!str_contains($term->getKanji(), $query)) continue;
$ret[$term->getKanji()] = $term;
}
}