Skip to content

Commit

Permalink
fix(github): delinkify markdown references
Browse files Browse the repository at this point in the history
Closes #3082
  • Loading branch information
rarkins committed Jan 18, 2019
1 parent d9535e7 commit b9d19e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/platform/github/index.js
Expand Up @@ -1478,7 +1478,8 @@ function getPrBody(input) {
const massagedInput = input
// to be safe, replace all github.com links with renovatebot redirector
.replace(/href="https?:\/\/github.com\//g, 'href="https://togithub.com/')
.replace(/]\(https:\/\/github\.com\//g, '](https://togithub.com/');
.replace(/]\(https:\/\/github\.com\//g, '](https://togithub.com/')
.replace(/]: https:\/\/github\.com\//g, ']: https://togithub.com/');
return smartTruncate(massagedInput);
}

Expand Down

0 comments on commit b9d19e6

Please sign in to comment.