diff --git a/twitter.php b/twitter.php index 566804a..4526a56 100644 --- a/twitter.php +++ b/twitter.php @@ -352,7 +352,7 @@ public function linkify( $tweet ) { //Convert urls to links - $tweet = preg_replace("/([\w]+\:\/\/[\w-?&;#~=\.\/\@]+[\w\/])/", "$1", $tweet); + $tweet = preg_replace("/([\w]+\:\/\/[\w\-?&;#~=\.\/\@]+[\w\/])/", "$1", $tweet); //Convert hashtags to twitter searches in links $tweet = preg_replace("/#([A-Za-z0-9\/\.]*)/", "#$1", $tweet);