Changeset 638

Show
Ignore:
Timestamp:
04/21/06 02:03:22
Author:
miyagawa
Message:

allow newlines in RSS 2.0 and Atom as well

Files:

Legend:

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

    r637 r638  
    5050sub looks_like_feed { 
    5151    my($self, $content_ref) = @_; 
    52     $$content_ref =~ m!<rss version="|<rdf:RDF.+?xmlns="http://purl\.org/rss|<feed xmlns="!s; 
     52    $$content_ref =~ m!<rss\s+version="|<rdf:RDF\s+xmlns="http://purl\.org/rss|<feed\s+xmlns="!s; 
    5353} 
    5454