Fix lint

d3e62fe56c79c9a8a2b7d25ee48ddbc834ce6bc5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -3Ignore whitespace
src/endpoints/chats.js+3 -3
@@ -785,9 +785,9 @@ router.post('/search', validateAvatarUrlMiddleware, function (request, response)
785785
786786 // Search through title and messages of the chat
787787 const fragments = query.trim().toLowerCase().split(/\s+/).filter(x => x);
788788 const text = [chatFile.path.split(/[\\\/]/).pop().replace(/.jsonl$/, ''),
789789 ...messages.map(message => message?.mes)].join("'\n"').toLowerCase();
790790 const hasMatch = fragments.every(fragment => (text).includes(fragment));
791791
792792 if (hasMatch) {
793793 results.push({