There was an error while loading. Please reload this page.
2 parents 8fcc445 + f2f0307 commit 3c08f6dCopy full SHA for 3c08f6d
lib/simplecov/defaults.rb
@@ -4,7 +4,7 @@
4
SimpleCov.profiles.define 'root_filter' do
5
# Exclude all files outside of simplecov root
6
add_filter do |src|
7
- !(src.filename =~ /^#{SimpleCov.root}/)
+ !(src.filename =~ /^#{Regexp.escape(SimpleCov.root)}/)
8
end
9
10
0 commit comments