fix trailing periods appearing in written-in shields
This commit is contained in:
parent
1d8ccdb5ad
commit
662496c214
@ -229,7 +229,7 @@ class CProject {
|
|||||||
$this->longdesc = preg_replace_callback('~\r?\nWritten in ([^\\n]+)~ms', function($matches) use (&$prefix_html) {
|
$this->longdesc = preg_replace_callback('~\r?\nWritten in ([^\\n]+)~ms', function($matches) use (&$prefix_html) {
|
||||||
$prefix_html .= (
|
$prefix_html .= (
|
||||||
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
|
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
|
||||||
mkshield('written in', $matches[1], 'blue')
|
mkshield('written in', rtrim($matches[1], '.'), 'blue')
|
||||||
);
|
);
|
||||||
return '';
|
return '';
|
||||||
}, $this->longdesc);
|
}, $this->longdesc);
|
||||||
|
Reference in New Issue
Block a user