Skip to content

Commit

Permalink
Link RT subject tag style ticket references, i.e. "[rt.cpan.org #NNN]…
Browse files Browse the repository at this point in the history
…" and "rt.cpan.org #NNN"
  • Loading branch information
tsibley committed Jan 24, 2014
1 parent 347471a commit 17223fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MetaCPAN/Web/Model/API/Changes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ sub _rt_cpan {
# Some other cases
$line =~ s{\b(bug\s+\#)(\d+)\b}{$u$2">$1$2</a>}gxi;

# Subject tag style
$line =~ s{(\[?rt\.cpan\.org\s+\#(\d+)\]?)}{$u$2">$1</a>}gxi;

return $line;
}

Expand Down

0 comments on commit 17223fe

Please sign in to comment.