Skip to content

Commit

Permalink
Merge pull request #237 from rli9/issue_204
Browse files Browse the repository at this point in the history
fix issue #204 by escape special characters in root path such as '(', ')'
  • Loading branch information
colszowka committed Sep 11, 2013
2 parents 8fcc445 + f2f0307 commit 3c08f6d
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 =~ /^#{SimpleCov.root}/)
!(src.filename =~ /^#{Regexp.escape(SimpleCov.root)}/)
end
end

Expand Down

0 comments on commit 3c08f6d

Please sign in to comment.