Also exclude an entry if it starts with one of the items given in the exclude key.

This commit is contained in:
Parker Moore 2014-05-06 12:46:41 -04:00
parent e4c3a8d0df
commit 413de3a0ee
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ module Jekyll
entry = ensure_leading_slash(e) entry = ensure_leading_slash(e)
enum.any? do |exp| enum.any? do |exp|
item = ensure_leading_slash(exp) item = ensure_leading_slash(exp)
Jekyll.logger.debug "glob_include?(#{entry})" File.fnmatch?(item, entry) || entry.start_with?(item)
Jekyll.logger.debug " ==> File.fnmatch?(#{item}, #{entry}) == #{File.fnmatch?(item, entry)}"
File.fnmatch?(item, entry)
end end
end end
end end