diff --git a/ChangeLog b/ChangeLog index 5cddc928a..eb12f0821 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2006-04-12 Sebastian Mendel + * changelog.php: + link also js, html, pl, and sh files, FAQ entries + and contributors to their sf.net user page, smaller regex fixes + 2006-04-13 Marc Delisle * export.php: bug #1443004 part 2: export views after the tables diff --git a/changelog.php b/changelog.php index 9dd53e22b..4c4d49670 100644 --- a/changelog.php +++ b/changelog.php @@ -10,29 +10,42 @@ $changelog = htmlspecialchars(file_get_contents('ChangeLog')); $replaces = array( - // sourceforge addresses + // sourceforge users '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+) <(.*)@users.sourceforge.net>/i' => '\\1 \\2', + '/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i' + => 'thanks to \\1', + '/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i' + => 'thanks to \\1', // mail adresse '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+) <(.*@.*)>/i' => '\\1 \\2', - // linking bugs - '/bug\s+#([0-9]*)/i' - => 'bug \\1', - - // linking pacthes - '/patch\s+#([0-9]*)/i' - => 'patch \\1', + // linking patches + '/patch\s*#?([0-9]{6,})/i' + => 'patch #\\1', // linking RFE - '/rfe\s+#([0-9]*)/i' - => 'RFE \\1', + '/(?:rfe|feature)\s*#?([0-9]{6,})/i' + => 'RFE #\\1', // linking files - '/(\s+)([\\/a-z_0-9\.]+\.php)/i' + '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i' => '\\1\\2', + + // FAQ entries + '/FAQ ([0-9]+)\.([0-9a-z]+)/i' + => 'FAQ \\1.\\2', + + // linking bugs + '/bug\s*#?([0-9]{6,})/i' + => 'BUG #\\1', + + // all other 6+ digit numbers are treated as bugs + '/(? ' BUG #\\1', + ); header('Content-type: text/html; charset=utf-8');