Alexandre Julliard : announce.php: Fix the version number regexp.

Alexandre Julliard julliard at winehq.org
Thu Feb 2 16:11:30 CST 2012


Module: website
Branch: master
Commit: 2c6ca4f10864fdf8a2164ade6d70a322769fe6c9
URL:    http://source.winehq.org/git/website.git/?a=commit;h=2c6ca4f10864fdf8a2164ade6d70a322769fe6c9

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Feb  2 23:05:46 2012 +0100

announce.php: Fix the version number regexp.

---

 include/plugins/announce.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/plugins/announce.php b/include/plugins/announce.php
index a243475..3f0f0fd 100644
--- a/include/plugins/announce.php
+++ b/include/plugins/announce.php
@@ -28,7 +28,7 @@ if ($arr = file($announce))
         {
             // Link to previous versions in changes
             $in_bugs = 0;
-            $arr[$c] = ereg_replace( '[[:digit:].]+', '<a title="Changes since \\0" href="./\\0">\\0</a>', $arr[$c] );
+            $arr[$c] = ereg_replace( '[[:digit:].]+(-rc[[:digit:]]+)?', '<a title="Changes since \\0" href="./\\0">\\0</a>', $arr[$c] );
         }
 
         if ($in_header)




More information about the wine-cvs mailing list