From 5633b9271e7ed25b9545bd9e1084e7631b594c0a Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 8 Mar 2024 09:19:27 +0100 Subject: [PATCH] fix url regexp --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 4251a25..7fec103 100644 --- a/index.php +++ b/index.php @@ -126,7 +126,7 @@ echo '
'; } $links = array(); - if (preg_match_all('/https:(.*)[ \r]/', $content, $links, PREG_SET_ORDER)) + if (preg_match_all('/https:(.*)\b/', $content, $links, PREG_SET_ORDER)) { echo '
External links:
'; foreach($links as $link)