move check to correct line
parent
074bb23ba2
commit
4d3d4ef6e6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue