| 783 | continue; | 783 | continue; |
| 784 | } | 784 | } |
| 785 | | 785 | |
| 786 | // Search through chats | 786 | // 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 = [chatFile.path.split(/[\\\/]/).pop().replace(/.jsonl$/, ''), | 788 | const text = [chatFile.path.split(/[\\\/]/).pop().replace(/.jsonl$/, ''), |
| 789 | ...messages.map(message => message?.mes)].join("\n").toLowerCase(); | 789 | ...messages.map(message => message?.mes)].join("\n").toLowerCase(); |