Changeset 435

Show
Ignore:
Timestamp:
03/31/06 22:27:58
Author:
miyagawa
Message:

StripRSSAd: support FB.jp. Fixes #143

Files:

Legend:

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

    r414 r435  
    4141 
    4242    # FeedBurner ads 
    43     $count = $body =~ s!<p><a href="http://feeds\.feedburner\.com/~a/[\w/]+\?a=\w+"[^>]*><img src="http://feeds\.feedburner\.com/~a/[\w/]+\?i=\w+" border="0"></img></a></p>!!; 
     43    $count = $body =~ s!<p><a href="http://feeds\.feedburner\.(?:com|jp)/~a/[\w/]+\?a=\w+"[^>]*><img src="http://feeds\.feedburner\.(?:com|jp)/~a/[\w/]+\?i=\w+" border="0"></img></a></p>!!; 
    4444    Plagger->context->log(debug => "Stripped FeedBurner Ads on $link") if $count; 
    4545