From e2fe033bf47a5c27ef0490b2ee88889280e0d035 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 20 Jun 2025 23:23:09 +0200 Subject: [PATCH] word_search: fix english search, filter '%' --- lib/search/word_search/entry_id_query.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/search/word_search/entry_id_query.dart b/lib/search/word_search/entry_id_query.dart index 20fbaae..0e4ba06 100644 --- a/lib/search/word_search/entry_id_query.dart +++ b/lib/search/word_search/entry_id_query.dart @@ -93,7 +93,7 @@ String _filterFTSSensitiveCharacters(String word) { _filterFTSSensitiveCharacters(word), _filterFTSSensitiveCharacters(word), if (!countOnly) pageSize, - word, + _filterFTSSensitiveCharacters(word), if (!countOnly) pageSize, ] ); @@ -193,9 +193,9 @@ Future> _queryEnglish( .trim(), [ word, - '%$word%', - '%$word%', - '%$word%', + word, + word, + '%${word.replaceAll('%', '')}%', pageSize, offset, ],