feat: Only show those terms that indeed have the query in them
This commit is contained in:
parent
99fedadd81
commit
a2c07e5d2f
|
@ -218,6 +218,8 @@ class AnkiService
|
||||||
if (!$note instanceof SentenceNote) continue;
|
if (!$note instanceof SentenceNote) continue;
|
||||||
|
|
||||||
foreach ($note->getTerms() as $term) {
|
foreach ($note->getTerms() as $term) {
|
||||||
|
if (!str_contains($term->getKanji(), $query)) continue;
|
||||||
|
|
||||||
$ret[$term->getKanji()] = $term;
|
$ret[$term->getKanji()] = $term;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue