diff --git a/changelog.php b/changelog.php
index 2b0dc3ae0..006070b6f 100644
--- a/changelog.php
+++ b/changelog.php
@@ -26,11 +26,11 @@ $replaces = array(
// linking patches
'/patch\s*#?([0-9]{6,})/i'
- => 'patch #\\1',
+ => 'patch #\\1',
// linking RFE
'/(?:rfe|feature)\s*#?([0-9]{6,})/i'
- => 'RFE #\\1',
+ => 'RFE #\\1',
// linking files
'/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
@@ -42,11 +42,11 @@ $replaces = array(
// linking bugs
'/bug\s*#?([0-9]{6,})/i'
- => 'bug #\\1',
+ => 'bug #\\1',
// all other 6+ digit numbers are treated as bugs
'/(? ' bug #\\1',
+ => ' bug #\\1',
// CVE/CAN entries
'/((CAN|CVE)-[0-9]+-[0-9]+)/'