From f03d6f6861de2c60b108fbbae6aa7a089206d0fc Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 22 Jul 2025 17:40:14 +0800 Subject: [PATCH] feat: search in book format, group names and descriptions (#1662) --- apps/readest-app/src/app/library/components/Bookshelf.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/src/app/library/components/Bookshelf.tsx b/apps/readest-app/src/app/library/components/Bookshelf.tsx index cc128570..46f52fd7 100644 --- a/apps/readest-app/src/app/library/components/Bookshelf.tsx +++ b/apps/readest-app/src/app/library/components/Bookshelf.tsx @@ -221,7 +221,13 @@ const Bookshelf: React.FC = ({ const searchTerm = new RegExp(queryTerm, 'i'); const title = formatTitle(item.title); const authors = formatAuthors(item.author); - return searchTerm.test(title) || searchTerm.test(authors); + return ( + searchTerm.test(title) || + searchTerm.test(authors) || + searchTerm.test(item.format) || + (item.groupName && searchTerm.test(item.groupName)) || + (item.metadata?.description && searchTerm.test(item.metadata?.description)) + ); }; const bookSorter = (a: Book, b: Book) => { const uiLanguage = localStorage?.getItem('i18nextLng') || '';