mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Use a raw string for the related_replace_regex
This commit is contained in:
@@ -648,7 +648,7 @@ class FrontController(RedditController):
|
||||
return BoringPage(_("awards"), content = UserAwards()).render()
|
||||
|
||||
# filter for removing punctuation which could be interpreted as search syntax
|
||||
related_replace_regex = re.compile('[?\\&|!{}+~^()"\':*-]+')
|
||||
related_replace_regex = re.compile(r'[?\\&|!{}+~^()"\':*-]+')
|
||||
related_replace_with = ' '
|
||||
|
||||
@base_listing
|
||||
|
||||
Reference in New Issue
Block a user