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);
break;
case "tag":
$tag_string = join(",", $tags);
$match = @preg_match("/$reg_exp/i", $tag_string);
foreach ($tags as $tag) {
if (@preg_match("/$reg_exp/i", $tag)) {
$match = true;
break;
}
}
break;
}