fix email links

This commit is contained in:
Michal Čihař
2006-04-20 15:17:24 +00:00
parent 96947846a4
commit ca1026a293
2 changed files with 5 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ $changelog = htmlspecialchars(file_get_contents('ChangeLog'));
$replaces = array(
// sourceforge users
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+) <(.*)@users.sourceforge.net>/i'
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*)@users.sourceforge.net>/i'
=> '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
'/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
@@ -19,8 +19,8 @@ $replaces = array(
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
// mail adresse
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+) &lt;(.*@.*)&gt;/i'
=> '\\1 <a href="mailto:\\3/">\\2</a>',
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*@.*)&gt;/i'
=> '\\1 <a href="mailto:\\3">\\2</a>',
// linking patches
'/patch\s*#?([0-9]{6,})/i'