Changeset 1342

Show
Ignore:
Timestamp:
08/16/06 20:44:58
Author:
youpy
Message:
  • added test for EFT with XPath
  • Filter::EntryFullText?: fixed bug when YAML has no extract regexp
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/EntryFullText.pm

    r1299 r1342  
    234234    my $data; 
    235235 
    236     if (my @match = $args->{content} =~ /$self->{extract}/s) { 
    237         my @capture = split /\s+/, $self->{extract_capture}; 
    238         @{$data}{@capture} = @match; 
     236    if ($self->{extract}) { 
     237        if (my @match = $args->{content} =~ /$self->{extract}/s) { 
     238            my @capture = split /\s+/, $self->{extract_capture}; 
     239            @{$data}{@capture} = @match; 
     240        } 
    239241    } 
    240242