diff options
author | stepshal <nessento@openmailbox.org> | 2016-07-11 20:29:47 +0700 |
---|---|---|
committer | stepshal <nessento@openmailbox.org> | 2016-07-11 23:53:13 +0700 |
commit | b3ab221b9808ba2b7b01d417210af9b9527e661c (patch) | |
tree | 6ee035fb32906228376d9473e8524e8ed2be745a /searx/engines/swisscows.py | |
parent | 3fd405dcd3fd46d5b6f2fe1df625eedf0f1fbe02 (diff) | |
download | searxng-b3ab221b9808ba2b7b01d417210af9b9527e661c.tar.gz searxng-b3ab221b9808ba2b7b01d417210af9b9527e661c.zip |
Fix anomalous backslash in string
Diffstat (limited to 'searx/engines/swisscows.py')
-rw-r--r-- | searx/engines/swisscows.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py index 864436a52..1a94ed64e 100644 --- a/searx/engines/swisscows.py +++ b/searx/engines/swisscows.py @@ -25,10 +25,10 @@ base_url = 'https://swisscows.ch/' search_string = '?{query}&page={page}' # regex -regex_json = re.compile('initialData: {"Request":(.|\n)*},\s*environment') -regex_json_remove_start = re.compile('^initialData:\s*') -regex_json_remove_end = re.compile(',\s*environment$') -regex_img_url_remove_start = re.compile('^https?://i\.swisscows\.ch/\?link=') +regex_json = re.compile(r'initialData: {"Request":(.|\n)*},\s*environment') +regex_json_remove_start = re.compile(r'^initialData:\s*') +regex_json_remove_end = re.compile(r',\s*environment$') +regex_img_url_remove_start = re.compile(r'^https?://i\.swisscows\.ch/\?link=') # do search-request |