Fix #1822
This commit is contained in:
parent
e14107ba65
commit
c44f7482b1
1 changed files with 7 additions and 1 deletions
|
@ -117,7 +117,13 @@ module Middleman
|
|||
.sort_by { |resource| SORT_ORDER.index(resource.ext) || 100 }
|
||||
|
||||
if @glob
|
||||
resources = resources.select { |resource| File.fnmatch(@glob, resource.destination_path) }
|
||||
resources = resources.select do |resource|
|
||||
if defined?(::File::FNM_EXTGLOB)
|
||||
File.fnmatch(@glob, resource.destination_path, ::File::FNM_EXTGLOB)
|
||||
else
|
||||
File.fnmatch(@glob, resource.destination_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
output_resources(resources)
|
||||
|
|
Loading…
Reference in a new issue