Also exclude an entry if it starts with one of the items given in the exclude key.
This commit is contained in:
parent
e4c3a8d0df
commit
413de3a0ee
|
@ -65,9 +65,7 @@ module Jekyll
|
|||
entry = ensure_leading_slash(e)
|
||||
enum.any? do |exp|
|
||||
item = ensure_leading_slash(exp)
|
||||
Jekyll.logger.debug "glob_include?(#{entry})"
|
||||
Jekyll.logger.debug " ==> File.fnmatch?(#{item}, #{entry}) == #{File.fnmatch?(item, entry)}"
|
||||
File.fnmatch?(item, entry)
|
||||
File.fnmatch?(item, entry) || entry.start_with?(item)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue