Changeset 1779

Show
Ignore:
Timestamp:
10/18/06 19:00:07
Author:
miyagawa
Message:

Summary::Simple: tighten up the regexp

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Summary/Simple.pm

    r1778 r1779  
    3535        # text: strip until the ending dots 
    3636        # TODO: make this 255 configurable? 
    37         if ($text =~ /^(.+?(\x{3002}|\.\s))/ && length($1) <= 255) { 
     37        if ($text =~ /^(.{20,254}?(\x{3002}|\.\s))/) { 
    3838            (my $summary = $1) =~ s/\s*$//; 
    3939            return $summary;