lib/nanoc/extra/checking/checks/internal_links.rb in nanoc-4.0.0 vs lib/nanoc/extra/checking/checks/internal_links.rb in nanoc-4.0.1

- old
+ new

@@ -63,10 +63,10 @@ # Nope :( false end def excluded?(href) - excludes = @config.fetch(:checks, {}).fetch(:internal_links, {}).fetch(:exclude, []) + excludes = @config.fetch(:checks, {}).fetch(:internal_links, {}).fetch(:exclude, []) excludes.any? { |pattern| Regexp.new(pattern).match(href) } end end end