Skip to content
Permalink
Browse files
irclogs: match against whitespace
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 16, 2015
1 parent 51968d7 commit 75a0bb08462f891fdd972c1c0188e4497a13dac6
Showing with 2 additions and 2 deletions.
  1. +1 −1 v7/irclogs/irclogs.plugin
  2. +1 −1 v7/irclogs/irclogs.py
@@ -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

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