Skip to content

Commit

Permalink
Merge pull request ruby-prof#87 from tech-angels/master
Browse files Browse the repository at this point in the history
Fixes regexp file reading. for --exclude-file
  • Loading branch information
rdp committed Sep 17, 2012
2 parents 798ab68 + d31f89f commit be04352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby-prof/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def eliminate_methods!(matchers)
# read regexps from file
def read_regexps_from_file(file_name)
matchers = []
File.open(matchers).each_line do |l|
File.open(file_name).each_line do |l|
next if (l =~ /^(#.*|\s*)$/) # emtpy lines and lines starting with #
matchers << Regexp.new(l.strip)
end
Expand Down

0 comments on commit be04352

Please sign in to comment.