From 16cc695115688b04dae1b3ab97aef149b17bc7e4 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 11 Apr 2021 15:47:42 +0000 Subject: fix regression finding bookmarks --- include/text.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index 1eaa890e0..6e6e1fc38 100644 --- a/include/text.php +++ b/include/text.php @@ -874,11 +874,7 @@ function get_tags($s) { // ignore anything in [color= ], because it may contain color codes which are mistaken for tags $s = preg_replace('/\[color=(.*?)\]/sm','',$s); - // skip anchors in URL - $s = preg_replace('/\[url=(.*?)\]/sm','',$s); - // match any double quoted tags - if(preg_match_all('/([@#\!]\"\;.*?\"\;)/',$s,$match)) { foreach($match[1] as $mtch) { $ret[] = $mtch; @@ -891,7 +887,6 @@ function get_tags($s) { } // match bracket mentions - if(preg_match_all('/([@!]\!?\{.*?\})/',$s,$match)) { foreach($match[1] as $mtch) { $ret[] = $mtch; @@ -900,7 +895,6 @@ function get_tags($s) { // Pull out single word tags. These can be @nickname, @first_last // and #hash tags. - if(preg_match_all('/(?