From b3ab221b9808ba2b7b01d417210af9b9527e661c Mon Sep 17 00:00:00 2001 From: stepshal Date: Mon, 11 Jul 2016 20:29:47 +0700 Subject: Fix anomalous backslash in string --- searx/engines/yahoo_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/yahoo_news.py') diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py index d4cfbeda2..e91c1d34e 100644 --- a/searx/engines/yahoo_news.py +++ b/searx/engines/yahoo_news.py @@ -55,7 +55,7 @@ def request(query, params): def sanitize_url(url): if ".yahoo.com/" in url: - return re.sub(u"\;\_ylt\=.+$", "", url) + return re.sub(u"\\;\\_ylt\\=.+$", "", url) else: return url -- cgit v1.2.3