mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
Fix anomalous backslash in string
This commit is contained in:
@@ -87,7 +87,7 @@ def load_single_https_ruleset(rules_path):
|
||||
|
||||
# convert host-rule to valid regex
|
||||
host = ruleset.attrib.get('host')\
|
||||
.replace('.', '\.').replace('*', '.*')
|
||||
.replace('.', r'\.').replace('*', '.*')
|
||||
|
||||
# append to host list
|
||||
hosts.append(host)
|
||||
|
||||
Reference in New Issue
Block a user