Skip to content

Commit

Permalink
speed up root_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
raszi committed Jul 6, 2015
1 parent 3e8f3e3 commit 63e0c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplecov/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SimpleCov.profiles.define "root_filter" do
# Exclude all files outside of simplecov root
add_filter do |src|
!(src.filename =~ /^#{Regexp.escape(SimpleCov.root)}/i)
!src.filename.downcase.start_with?(SimpleCov.root.downcase)
end
end

Expand Down

0 comments on commit 63e0c76

Please sign in to comment.