This commit is contained in:
Thomas Reynolds 2016-03-01 09:25:05 -08:00
parent e14107ba65
commit c44f7482b1

View file

@ -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)