Skip to content

Commit

Permalink
Change source urls to use /pod and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Apr 28, 2014
1 parent 82aa14d commit 73d3b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/static/js/shCore.js
Expand Up @@ -1069,6 +1069,7 @@ function processUrls(code)
return '<a href="' + m + '">' + m + '</a>' + suffix;
});

// NOTE: Custom metacpan addition. Does SH have an API to add a hook like this?
return processPackages(code);
};

Expand All @@ -1079,7 +1080,7 @@ function processUrls(code)
*/
function processPackages(code)
{
var destination = document.location.href.match(/\/source\//) ? 'source' : 'module',
var destination = document.location.href.match(/\/source\//) ? 'source' : 'pod',
strip_delimiters = /((?:q[qw]?)?.)([A-Za-z0-9\:]+)(.*)/
;

Expand Down

0 comments on commit 73d3b90

Please sign in to comment.