Skip to content
Snippets Groups Projects
Commit 5cfaa472 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

Match each tag separately against user filter regular expression
parents 8cefe38a 7b80b5e1
No related branches found
No related tags found
No related merge requests found
...@@ -1271,8 +1271,12 @@ ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment