diff options
author | Mario <mario@mariovavti.com> | 2021-04-11 15:47:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-20 10:56:37 +0200 |
commit | 6feefc5ce0615e0f40e10d576a78d96ec8fd40e4 (patch) | |
tree | b4689347b5c1aba89907ff23e21a7bce38dafb83 | |
parent | 6a858b29fdf78817d1103f52afec5f764aeca6f2 (diff) | |
download | volse-hubzilla-6feefc5ce0615e0f40e10d576a78d96ec8fd40e4.tar.gz volse-hubzilla-6feefc5ce0615e0f40e10d576a78d96ec8fd40e4.tar.bz2 volse-hubzilla-6feefc5ce0615e0f40e10d576a78d96ec8fd40e4.zip |
fix regression finding bookmarks
(cherry picked from commit 16cc695115688b04dae1b3ab97aef149b17bc7e4)
-rw-r--r-- | include/text.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/text.php b/include/text.php index ca3453b64..99e09f81d 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('/(?<![a-zA-Z0-9=\pL\/\?\;])([@#\!]\!?[^ \x0D\x0A,;:\?\[\{\&]+)/u',$s,$match)) { foreach($match[1] as $mtch) { @@ -924,7 +918,6 @@ function get_tags($s) { } // bookmarks - if(preg_match_all('/#\^\[(url|zrl)(.*?)\](.*?)\[\/(url|zrl)\]/',$s,$match,PREG_SET_ORDER)) { foreach($match as $mtch) { $ret[] = $mtch[0]; |