Skip to content

Commit a5432dd

Browse files
committed
spec/file_sorting_spec.rb: ignore py and txt files
Signed-off-by: Philip Li <[email protected]>
1 parent e255426 commit a5432dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/file_sorting_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def with_shebang?(file)
1717
def filtered_files(path, filter)
1818
Dir.glob("#{path}/**/*")
1919
.select { |f| File.file?(f) }
20-
.reject { |f| f =~ /\.(sh|rb|yml)$/ || File.symlink?(f) || with_shebang?(f) }
20+
.reject { |f| f =~ /\.(sh|rb|yml|py|txt)$/ || File.symlink?(f) || with_shebang?(f) }
2121
.select { |f| filter.nil? || filter.call(File.basename(f)) }
2222
end
2323

0 commit comments

Comments
 (0)