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