move check to correct line

master
Benjamin Schieder 2017-05-01 18:35:52 +01:00
parent 074bb23ba2
commit 4d3d4ef6e6
1 changed files with 1 additions and 1 deletions

View File

@ -20,12 +20,12 @@ sub apply {
my $match = 1; my $match = 1;
my $arg = $self->{data}->{field}; my $arg = $self->{data}->{field};
return 0 unless defined($arg);
if ($arg eq "content"){ if ($arg eq "content"){
$arg = $entry->content()->body; $arg = $entry->content()->body;
} else { } else {
$arg = $entry->$arg(); $arg = $entry->$arg();
} }
return 0 unless defined($arg);
my $regex = uri_unescape($self->{data}->{regex}); my $regex = uri_unescape($self->{data}->{regex});
$regex =~ s,\\\\,\\,g; $regex =~ s,\\\\,\\,g;