diff --git a/RSSTootalizer/Filter.pm b/RSSTootalizer/Filter.pm index 3b68296..269f866 100644 --- a/RSSTootalizer/Filter.pm +++ b/RSSTootalizer/Filter.pm @@ -20,12 +20,12 @@ sub apply { my $match = 1; my $arg = $self->{data}->{field}; - return 0 unless defined($arg); if ($arg eq "content"){ $arg = $entry->content()->body; } else { $arg = $entry->$arg(); } + return 0 unless defined($arg); my $regex = uri_unescape($self->{data}->{regex}); $regex =~ s,\\\\,\\,g;