lib/backup/jar.rb in encbs-0.2.2 vs lib/backup/jar.rb in encbs-0.2.3
- old
+ new
@@ -139,10 +139,10 @@
if File.directory? @local_path
matches = Dir.glob(File.join(@local_path, "/**/*"), File::FNM_DOTMATCH)
matches = matches.select do |match|
- match[/\/..$/].nil? and match[/\/.$/].nil?
+ match[/\/\.\.$/].nil? and match[/\/\.$/].nil?
end
matches << @local_path
matches.each do |match|