Merge pull request #1445 from fabrixxm/issue-1041

ignore tags inside code block
2022.09-rc
Michael Vogel 2015-03-22 22:22:49 +01:00
commit 045c78e4a0
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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";