diff --git a/src/fabledassistant/services/notes.py b/src/fabledassistant/services/notes.py index d5a4556..0d46d96 100644 --- a/src/fabledassistant/services/notes.py +++ b/src/fabledassistant/services/notes.py @@ -166,7 +166,7 @@ async def list_notes( count_query = count_query.where(Note.status.is_(None)) if q: - terms = q.split() + terms = _strip_type_nouns(q) for term in terms: escaped_term = term.replace("\\", "\\\\").replace("%", "\\%").replace("_", "\\_") pattern = f"%{escaped_term}%"