Skip to content

Commit

Permalink
Merge pull request #548 from bilus/master
Browse files Browse the repository at this point in the history
FIX: No links to lines in backtrace under TextMate.
  • Loading branch information
mattwynne committed Dec 22, 2014
2 parents cf0c23f + d827094 commit 7a61419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/formatter/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def format_exception(exception)
end

def backtrace_line(line)
line.gsub(/\A([^:]*\.(?:rb|feature|haml)):(\d*).*\z/) do
line.gsub(/^([^:]*\.(?:rb|feature|haml)):(\d*).*$/) do
if ENV['TM_PROJECT_DIRECTORY']
"<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
else
Expand Down

0 comments on commit 7a61419

Please sign in to comment.