1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 11:41:29 +00:00

Merge pull request #168 from KonishchevDmitry/pr-match-filter-regex-to-each-tag-separately

Match each tag separately against user filter regular expression
This commit is contained in:
Andrew Dolgov
2013-04-27 01:11:35 -07:00

View File

@@ -1271,8 +1271,12 @@
$match = @preg_match("/$reg_exp/i", $author); $match = @preg_match("/$reg_exp/i", $author);
break; break;
case "tag": case "tag":
$tag_string = join(",", $tags); foreach ($tags as $tag) {
$match = @preg_match("/$reg_exp/i", $tag_string); if (@preg_match("/$reg_exp/i", $tag)) {
$match = true;
break;
}
}
break; break;
} }