Fixed hyperlink regex
This commit is contained in:
parent
17b74769e5
commit
6282ecc053
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user