mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
Fix anomalous backslash in string
This commit is contained in:
parent
3fd405dcd3
commit
b3ab221b98
21 changed files with 47 additions and 47 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue