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:
commit
5cfaa47283
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue