From 662496c214fda15a5a23cb2c9c3de57c777d8371 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 8 Nov 2015 11:56:44 +1300 Subject: [PATCH] fix trailing periods appearing in written-in shields --- rebuild.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild.php b/rebuild.php index 3f70c6a..3bdbaa6 100644 --- a/rebuild.php +++ b/rebuild.php @@ -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);