From 23fb8cd6dbe8eca92e3d8b09418139881aa17c92 Mon Sep 17 00:00:00 2001 From: clvarley Date: Wed, 29 Jan 2020 12:02:28 +0000 Subject: [PATCH] Fixed deprecation error within regex --- twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);