lib/feedjira/parser/atom_feed_burner.rb in feedjira-3.0.0.beta1 vs lib/feedjira/parser/atom_feed_burner.rb in feedjira-3.0.0

- old
+ new

@@ -1,6 +1,5 @@ -# rubocop:disable Style/DocumentationMethod module Feedjira module Parser # Parser for dealing with Feedburner Atom feeds. class AtomFeedBurner include SAXMachine @@ -18,10 +17,10 @@ elements :entry, as: :entries, class: AtomFeedBurnerEntry attr_writer :url, :feed_url def self.able_to_parse?(xml) - ((/Atom/ =~ xml) && (/feedburner/ =~ xml) && !(/\<rss|\<rdf/ =~ xml)) || false # rubocop:disable Metrics/LineLength + ((/<feed/ =~ xml) && (/Atom/ =~ xml) && (/feedburner/ =~ xml) && !(/\<rss|\<rdf/ =~ xml)) || false # rubocop:disable Metrics/LineLength end # Feed url is <link> with type="text/html" if present, # <link> with no type attribute otherwise def url