Searching for tags has been enabled in all places. The tag detection has been improved for imports with missing line feeds.

This commit is contained in:
Michael Vogel 2013-01-13 17:13:01 +01:00
parent b9afb38f4d
commit 5501dd0759
6 changed files with 112 additions and 51 deletions

View file

@ -562,11 +562,12 @@ function get_tags($s) {
$ret = array();
// ignore anything in a code block
$s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s);
// ignore anything in a bbtag
// Force line feeds at bbtags
$s = str_replace(array("[", "]"), array("\n[", "]\n"), $s);
// ignore anything in a bbtag
$s = preg_replace('/\[(.*?)\]/sm','',$s);
// Match full names against @tags including the space between first and last