Fixing the horrors of overly long lines, misalignment, and incorrect use of new lines.

This commit is contained in:
Dan Cryer 2014-05-01 16:53:29 +01:00
commit 4197c9e34d
19 changed files with 938 additions and 102 deletions

View file

@ -98,7 +98,9 @@ class GithubBuild extends RemoteGitBuild
{
$rtn = $this->data['commit_message'];
$rtn = preg_replace('/\#([0-9]+)/', '<a target="_blank" href="https://github.com/' . $this->getProject()->getReference() . '/issues/$1">#$1</a>', $rtn);
$reference = $this->getProject()->getReference();
$commitLink = '<a target="_blank" href="https://github.com/' . $reference . '/issues/$1">#$1</a>';
$rtn = preg_replace('/\#([0-9]+)/', $commitLink, $rtn);
$rtn = preg_replace('/\@([a-zA-Z0-9_]+)/', '<a target="_blank" href="https://github.com/$1">@$1</a>', $rtn);
return $rtn;