From f211fe2d67da62996f434bfe4bfca0a5e4b69450 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Fri, 5 May 2023 18:12:43 +0200 Subject: [PATCH] update --- llamabot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index 3d95bfe..6441187 100644 --- a/llamabot.js +++ b/llamabot.js @@ -214,7 +214,7 @@ async function generateResponse(conversation, message) { } if (pageContent) { const MAX_CONTENT_LENGTH = process.env.MAX_CONTENT_LENGTH; - let plainTextContent = $('
').html(pageContent).text().trim().replace(/[\r\n]+/g, ' '); + let plainTextContent = $('
').html(pageContent).text().trim().replace(/[\r\n\t]+/g, ' '); if (plainTextContent.length > MAX_CONTENT_LENGTH) { plainTextContent = plainTextContent.substring(0, MAX_CONTENT_LENGTH) + '...';