Skip to content

Commit

Permalink
Only do special formatting of radar links when we have 3 captures
Browse files Browse the repository at this point in the history
Closes #9.
  • Loading branch information
sorbits committed Oct 7, 2014
1 parent d347aa9 commit e77e5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/todo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ TextMate.each_text_file do |file|
part = $1 or next
if tag[:label] == "RADAR" then
if tag[:label] == "RADAR" && $~.captures.count == 3 then
url, display = (ENV['TM_RDAR_URL'] || "http://openradar.appspot.com/") + $2, "rdar://" + $2
match[:match] = html_escape($1) + "<a href=\"" + url + "\" target=\"_blank\">" + html_escape(display) + "</a>" + html_escape($3)
else
Expand Down

0 comments on commit e77e5af

Please sign in to comment.