mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-09 15:08:08 -05:00
Restore globbed path behavior in front matter defaults (#9762)
Restore existing behavior in v4.3.x wherein a scope with path `_*/**/index.md` matches `_label/index.md` as well instead of just `_label/dir/index.md`.
This commit is contained in:
@@ -109,7 +109,7 @@ module Jekyll
|
||||
sanitized_path = sanitize_path(path)
|
||||
|
||||
if rel_scope_path.include?("*")
|
||||
File.fnmatch?(strip_collections_dir(rel_scope_path), sanitized_path)
|
||||
glob_scope(sanitized_path, rel_scope_path)
|
||||
else
|
||||
path_is_subpath?(sanitized_path, strip_collections_dir(rel_scope_path))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user