# File lib/rspec/core/formatters/base_formatter.rb, line 143 def find_failed_line(backtrace, path) backtrace.detect { |line| match = line.match(/(.+?):(\d+)(|:\d+)/) match && match[1].downcase == path.downcase } end