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);
|
$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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue