Skip to content

Commit

Permalink
irclogs: match against whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 16, 2015
1 parent 51968d7 commit 75a0bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v7/irclogs/irclogs.plugin
Expand Up @@ -7,7 +7,7 @@ MinVersion = 7.3.0

[Documentation]
Author = Chris Warrick
Version = 1.0
Version = 1.1.0
Website = http://irclogs.getnikola.com/
Description = Compile irclogs

2 changes: 1 addition & 1 deletion v7/irclogs/irclogs.py
Expand Up @@ -60,7 +60,7 @@ def compile_html(self, source, dest, is_two_file=True):

formatter = NikolaPygmentsHTML('irclog', linenos=False)
data = pygments.highlight(data, lexer, formatter)
link_matcher = re.compile(r"(http[s]?://[^ ]+)")
link_matcher = re.compile(r"(http[s]?://[^\s]+)")
data = link_matcher.sub(r'<a href="\1" rel="nofollow">\1</a>', data)
out_file.write(data)
return True

0 comments on commit 75a0bb0

Please sign in to comment.