diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-07-18 22:27:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-18 22:27:17 +0200 |
| commit | aa09f963eb8220f866334779f61741da8926fcf2 (patch) | |
| tree | 37b9c3658374d6b8499be7713c8dc52c66e0be72 /searx/engines/google.py | |
| parent | 21c5fb1c4514444a7c4fdecd84874f2b7c367f38 (diff) | |
| parent | b3ab221b9808ba2b7b01d417210af9b9527e661c (diff) | |
Merge pull request #621 from stepshal/anomalous-backslash-in-string
Fix anomalous backslash in string
Diffstat (limited to 'searx/engines/google.py')
| -rw-r--r-- | searx/engines/google.py | 4 |
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) |