diff --git a/searx/webapp.py b/searx/webapp.py index 7764f75cd..5b223681e 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -958,8 +958,9 @@ const search_queryquery = "''' + search_query.query.replace('"',"") + r'''" const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r''' ''' diff --git a/searx/webapp1.py b/searx/webapp1.py index 42393c095..f23dc0a11 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1306,7 +1306,7 @@ for(let i=prompt.url_pair.length;i>=0;--i) new_text = new_text.replace("httpsurl"+String(i),prompt.url_pair[i]) new_text = new_text.replace("url"+String(i),prompt.url_pair[i]) } - new_text = new_text.replace(/(https?:\/\/(?!url\d)\S+)/g, ''); + new_text = new_text.replaceAll('(链接)', ''); new_text = new_text.replaceAll('[]', ''); new_text = new_text.replaceAll('((', '(');