mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
One day we'll have ignored all purely numeric hashtags like #33. Found yet another edge case.
This commit is contained in:
parent
d7a2ab9c1f
commit
ebb9af8946
1 changed files with 3 additions and 4 deletions
|
@ -482,13 +482,12 @@ function get_tags($s) {
|
|||
// we might be inside a bbcode color tag - leave it alone
|
||||
continue;
|
||||
}
|
||||
if(substr($mtch,-1,1) === '.')
|
||||
$mtch = substr($mtch,0,-1);
|
||||
// ignore strictly numeric tags like #1
|
||||
if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1)))
|
||||
continue;
|
||||
if(substr($mtch,-1,1) === '.')
|
||||
$ret[] = substr($mtch,0,-1);
|
||||
else
|
||||
$ret[] = $mtch;
|
||||
$ret[] = $mtch;
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
|
|
Loading…
Reference in a new issue