squashed a teensy bug

This commit is contained in:
Obosob
2015-07-30 11:43:13 +01:00
parent 68d5d99f57
commit a916820866

View File

@@ -106,7 +106,7 @@ class BaseContent(object):
displayed through the terminal. displayed through the terminal.
""" """
reddit_link = re.compile("https?://(np.)?redd(it.com|.it)/r/.*") reddit_link = re.compile("https?://(www.)?(np.)?redd(it.com|.it)/r/.*")
reddit_link_no_host = re.compile("/r/.*") reddit_link_no_host = re.compile("/r/.*")
author = getattr(sub, 'author', '[deleted]') author = getattr(sub, 'author', '[deleted]')
name = getattr(author, 'name', '[deleted]') name = getattr(author, 'name', '[deleted]')