Linter's gonna lint…

5a2311b806044f7f6df8ff8b528cfc6ada1daab4

Murad "Gness Erquint" Beybalaev <gness.na@gmail.com>

Signed
1 files changed, +1 -1Ignore whitespace
src/endpoints/chats.js+1 -1
@@ -786,7 +786,7 @@ router.post('/search', validateAvatarUrlMiddleware, function (request, response)
786 // Search through title and messages of the chat786 // Search through title and messages of the chat
787 const fragments = query.trim().toLowerCase().split(/\s+/).filter(x => x);787 const fragments = query.trim().toLowerCase().split(/\s+/).filter(x => x);
788 const text = [path.parse(chatFile.path).name,788 const text = [path.parse(chatFile.path).name,
789 ...messages.map(message => message?.mes)].join("\n").toLowerCase();789 ...messages.map(message => message?.mes)].join('\n').toLowerCase();
790 const hasMatch = fragments.every(fragment => (text).includes(fragment));790 const hasMatch = fragments.every(fragment => (text).includes(fragment));
791791
792 if (hasMatch) {792 if (hasMatch) {