Use a raw string for the related_replace_regex

This commit is contained in:
Keith Mitchell
2012-07-13 11:45:34 -07:00
committed by shlurbee
parent 8d276592ce
commit 16c753096c

View File

@@ -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