From 7e3822e7d43767f7adce6bf82460ee2ebadfd4f0 Mon Sep 17 00:00:00 2001 From: luxtiasco <79135227+luxtiasco@users.noreply.github.com> Date: Sat, 25 Feb 2023 00:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20webapp.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 8bddf37a0..7eb9b9aad 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1107,7 +1107,7 @@ function send_chat(elem) { if(lock_chat!=0) return; lock_chat = 1; - const knowledge = document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n以上是关键词“" + search_query.query + "”的搜索结果\n" + const knowledge = document.querySelector("#chat").innerHTML.replace(/.*?<\/a.*?>/g, '').replace(/]+>/g,"").replace(/\n\n/g,"\n") +"\n以上是关键词“" + search_queryquery + "”的搜索结果\n" let word = document.querySelector("#chat_input").value; if(elem){word = elem.textContent;elem.remove()} if(word.length==0 || word.length > 140) return;