From d827094c1fe5babacc15077762e757f8124efb9d Mon Sep 17 00:00:00 2001 From: Martin Bilski Date: Tue, 24 Sep 2013 23:32:10 +0200 Subject: [PATCH] FIX: No links to lines in backtrace under TextMate. --- lib/cucumber/formatter/html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cucumber/formatter/html.rb b/lib/cucumber/formatter/html.rb index 4f78bd113b..bed3dcccaf 100644 --- a/lib/cucumber/formatter/html.rb +++ b/lib/cucumber/formatter/html.rb @@ -536,7 +536,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'] "#{$1}:#{$2} " else