fix trailing periods appearing in written-in shields

This commit is contained in:
mappu 2015-11-08 11:56:44 +13:00
parent 1d8ccdb5ad
commit 662496c214
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class CProject {
$this->longdesc = preg_replace_callback('~\r?\nWritten in ([^\\n]+)~ms', function($matches) use (&$prefix_html) {
$prefix_html .= (
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
mkshield('written in', $matches[1], 'blue')
mkshield('written in', rtrim($matches[1], '.'), 'blue')
);
return '';
}, $this->longdesc);