coloured text confusing the tag finder

This commit is contained in:
Friendika 2010-11-24 17:21:31 -08:00
parent d98a695689
commit 48eab3e99c

View file

@ -1375,6 +1375,8 @@ function get_tags($s) {
$ret = array(); $ret = array();
if(preg_match_all('/([@#][^ ,:?]*)([ ,:?]|$)/',$s,$match)) { if(preg_match_all('/([@#][^ ,:?]*)([ ,:?]|$)/',$s,$match)) {
foreach($match[1] as $match) { foreach($match[1] as $match) {
if(strstr($match,"]"))
continue;
if(substr($match,-1,1) === '.') if(substr($match,-1,1) === '.')
$ret[] = substr($match,0,-1); $ret[] = substr($match,0,-1);
else else