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
commit 5cfaa47283
1 changed files with 6 additions and 2 deletions

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;
} }