lib/jekyll-s3/uploader.rb in jekyll-s3-yearofmoo-0.0.4 vs lib/jekyll-s3/uploader.rb in jekyll-s3-yearofmoo-0.0.5
- old
+ new
@@ -52,10 +52,12 @@
}.map { |f|
f.gsub(dir + '/', '')
}
if @config['exclude_files']
- patterns = @config['exclude_files']
+ patterns = @config['exclude_files'].map do |p|
+ Regexp.new(p)
+ end
files.each do |file|
found = true
patterns.each do |pattern|
found = false if file =~ pattern
end