lib/mate/tmproj/ignores.rb in mate-1.2.0 vs lib/mate/tmproj/ignores.rb in mate-1.2.1
- old
+ new
@@ -65,10 +65,10 @@
current_folder_pattern << pattern
end
current_file_pattern = current_file_pattern.join('|')
current_folder_pattern = current_folder_pattern.join('|')
unless parent == dir
- parent_pattern = Regexp.escape(parent.relative_path_from(dir))
+ parent_pattern = Regexp.escape(parent.relative_path_from(dir).to_s)
current_file_pattern = "#{parent_pattern}/(?:#{current_file_pattern})"
current_folder_pattern = "#{parent_pattern}/(?:#{current_folder_pattern})"
end
file_pattern << current_file_pattern
folder_pattern << current_folder_pattern