From b1eddd572d8b655d697946dd316403c6938ae0b2 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Tue, 14 Jan 2025 02:02:56 -0800 Subject: [PATCH] =?UTF-8?q?Condensed=20`stripQueryAugments()`,=20eliminate?= =?UTF-8?q?d=20backtracking=20potential=20from=20regex=20=E2=86=9E=20[auto?= =?UTF-8?q?-sync=20from=20https://github.com/adamlui/ai-web-extensionss/tr?= =?UTF-8?q?ee/main/bravegpt]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chatgpt/bravegpt/bravegpt.user.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chatgpt/bravegpt/bravegpt.user.js b/chatgpt/bravegpt/bravegpt.user.js index 32b2553ca..c120d6af0 100644 --- a/chatgpt/bravegpt/bravegpt.user.js +++ b/chatgpt/bravegpt/bravegpt.user.js @@ -148,7 +148,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.13.4 +// @version 2025.1.13.5 // @license MIT // @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0 // @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0 @@ -3266,8 +3266,7 @@ return msgChain.map(msg => { // stripped chain if (msg.role == 'user') { let content = msg.content - const augments = content.match(/\s*\{\{[^}]*\}\}\s*/g) - if (augments) augments.forEach(augment => content = content.replace(augment, '')) + content.match(/\{\{[^}]+\}\}/g)?.forEach(augment => content = content.replace(augment, '')) return { ...msg, content: content.trim() } } else return msg // agent's unstripped })