mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:10:11 +00:00
start on bug #227 - more to do
This commit is contained in:
parent
6b93324c11
commit
0f4a42f550
4 changed files with 25 additions and 6 deletions
|
@ -492,6 +492,9 @@ function get_tags($s) {
|
|||
// ignore strictly numeric tags like #1
|
||||
if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1)))
|
||||
continue;
|
||||
// try not to catch url fragments
|
||||
if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
|
||||
continue;
|
||||
$ret[] = $mtch;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue