lib/w3clove/sitemap.rb in w3clove-0.7.10 vs lib/w3clove/sitemap.rb in w3clove-0.7.11

- old
+ new

@@ -76,10 +76,10 @@ def looks_like_html?(url) u = URI.parse(URI.encode(url)) scheme = u.scheme if u.scheme extension = u.path.split(".").last if u.path - (scheme && extension) && (scheme =~ /http[s]?/i) && (extension !~ /gif|jpg|jpeg|png|tiff|bmp|txt|pdf|doc|rtf|xml|xls|csv|wav|mp3|ogg/i) + (scheme =~ /http[s]?/i) && (extension !~ /gif|jpg|jpeg|png|tiff|bmp|txt|pdf|doc|rtf|xml|xls|csv|wav|mp3|ogg/i) end def xml_locations Nokogiri::XML(doc).css('loc') end \ No newline at end of file