From 241b9e45184d31d96bb040da807df18f6a5ab4d8 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 13 Sep 2021 21:31:54 +0200 Subject: Add support for dlvr.it and t.co shortners --- unshorturl/unshorturl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php index e31268a..cbe3208 100644 --- a/unshorturl/unshorturl.php +++ b/unshorturl/unshorturl.php @@ -47,7 +47,7 @@ function unshorturl_prepare_body(&$body) { } $matches = []; - $num_matches = preg_match_all('/https?:\/\/bit\.ly\/\w+/', $body['html'], $matches); + $num_matches = preg_match_all('/https?:\/\/(bit\.ly|dlvr\.it|t\.co)\/\w+/', $body['html'], $matches); if ($num_matches > 0) { foreach ($matches as $links) { foreach($links as $l) { -- cgit v1.2.3