]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwListing.pm
wwwlisting: fix grep call for match=domain filtering
[public-inbox.git] / lib / PublicInbox / WwwListing.pm
index 5f85e3464bc84d9b76986ddedd313cb30347f168..0af0fe68cd7dea676abeec809b23bb3eb1c496d2 100644 (file)
@@ -40,7 +40,7 @@ sub list_all ($$$) {
 sub list_match_domain_i {
        my ($ibx, $arg) = @_;
        my ($list, $hide_key, $re) = @$arg;
-       if (!$ibx->{-hide}->{$hide_key} && grep($re, @{$ibx->{url}})) {
+       if (!$ibx->{-hide}->{$hide_key} && grep(/$re/, @{$ibx->{url}})) {
                push @$list, $ibx;
        }
 }