1
0
Fork 0

ignore any fully numeric hash tag

This commit is contained in:
Friendika 2011-07-25 20:21:16 -07:00
parent 06802dd8fe
commit 1441fce04e

View file

@ -2075,7 +2075,7 @@ function get_tags($s) {
continue; continue;
} }
// ignore strictly numeric tags like #1 // ignore strictly numeric tags like #1
if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1))) if((strpos($mtch,'#') === 0) && ctype_digit($mtch))
continue; continue;
if(substr($mtch,-1,1) === '.') if(substr($mtch,-1,1) === '.')
$ret[] = substr($mtch,0,-1); $ret[] = substr($mtch,0,-1);