summaryrefslogtreecommitdiff
path: root/searx/engines/google.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-11 20:29:47 +0700
committerstepshal <nessento@openmailbox.org>2016-07-11 23:53:13 +0700
commitb3ab221b9808ba2b7b01d417210af9b9527e661c (patch)
tree6ee035fb32906228376d9473e8524e8ed2be745a /searx/engines/google.py
parent3fd405dcd3fd46d5b6f2fe1df625eedf0f1fbe02 (diff)
downloadsearxng-b3ab221b9808ba2b7b01d417210af9b9527e661c.tar.gz
searxng-b3ab221b9808ba2b7b01d417210af9b9527e661c.zip
Fix anomalous backslash in string
Diffstat (limited to 'searx/engines/google.py')
-rw-r--r--searx/engines/google.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py
index 6018ad1b2..fd5e7b54c 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -300,9 +300,9 @@ def parse_map_detail(parsed_url, result, google_hostname):
results = []
# try to parse the geoloc
- m = re.search('@([0-9\.]+),([0-9\.]+),([0-9]+)', parsed_url.path)
+ m = re.search(r'@([0-9\.]+),([0-9\.]+),([0-9]+)', parsed_url.path)
if m is None:
- m = re.search('ll\=([0-9\.]+),([0-9\.]+)\&z\=([0-9]+)', parsed_url.query)
+ m = re.search(r'll\=([0-9\.]+),([0-9\.]+)\&z\=([0-9]+)', parsed_url.query)
if m is not None:
# geoloc found (ignored)