1
1
Fork 0

ignore tags inside code block

should fix issue #1041
This commit is contained in:
fabrixxm 2015-03-22 17:12:51 +01:00
parent e016db8bc6
commit a98d2ee387

View file

@ -37,6 +37,9 @@ function create_tags_from_item($itemid) {
$data = " ".$message["title"]." ".$message["body"]." ".$tags." ";
// ignore anything in a code block
$data = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$data);
$tags = array();
$pattern = "/\W\#([^\[].*?)[\s'\".,:;\?!\[\]\/]/ism";