lib/nanoc/checking/checks/external_links.rb in nanoc-4.9.1 vs lib/nanoc/checking/checks/external_links.rb in nanoc-4.9.2

- old
+ new

@@ -8,10 +8,10 @@ identifiers :external_links, :elinks def run # Find all broken external hrefs # TODO: de-duplicate this (duplicated in internal links check) - filenames = output_filenames.select { |f| File.extname(f) == '.html' && !excluded_file?(f) } + filenames = output_html_filenames.reject { |f| excluded_file?(f) } hrefs_with_filenames = ::Nanoc::Extra::LinkCollector.new(filenames, :external).filenames_per_href results = select_invalid(hrefs_with_filenames.keys) # Report them results.each do |res|