Fixed hyperlink regex

This commit is contained in:
Anna 2010-04-10 13:06:01 -04:00
parent 17b74769e5
commit 6282ecc053

View File

@ -211,7 +211,7 @@ class TweetBox(gtk.VBox):
# and the text # and the text
new_text = status.text new_text = status.text
new_text = re.sub('& ', '& ', new_text) new_text = re.sub('& ', '& ', new_text)
link_text = re.sub(r"(http://.*?)( |$)", r'<a href="\1">\1</a>\2', new_text) new_text = re.sub(r"(http://.*?)( |$)", r'<a href="\1">\1</a>\2', new_text)
self.text.set_markup(new_text) self.text.set_markup(new_text)