Jeremy Newman : match more on title and blurb

Jeremy Newman jnewman at winehq.org
Wed Dec 17 10:20:13 CST 2008


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

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Wed Dec 17 10:18:38 2008 -0600

match more on title and blurb

---

 include/html.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/html.php b/include/html.php
index 27c2162..650cee9 100644
--- a/include/html.php
+++ b/include/html.php
@@ -1260,10 +1260,10 @@ class html
             $in = preg_replace('/\{\$[a-z0-9_\-]+\}/', '', $in);        
         
         // get page name from template
-        if (preg_match('/<!--TITLE:\[([\w\s\-\&\'\;\,\.\?]+)\]-->/', $orig, $arr))
+        if (preg_match('/<!--TITLE:\[(.+)\]-->/', $orig, $arr))
         {
             debug("global", "adding to title: {$arr[1]}");
-            $in = preg_replace('/<!--TITLE:\[([\w\s\-\&\'\;\,\.\?]+)\]-->\n/', '', $in);
+            $in = preg_replace('/<!--TITLE:\[(.+)\]-->\n/', '', $in);
             $this->page_title .= " - {$arr[1]}";
             unset($arr);
         }
@@ -1287,10 +1287,10 @@ class html
         }
 
         // get page blurb template
-        if (preg_match('/<!--BLURB:\[([\w\s\-\&\'\;\,\.\?]+)\]-->/', $orig, $arr))
+        if (preg_match('/<!--BLURB:\[(.+)\]-->/', $orig, $arr))
         {
             debug("global", "setting page blurb: {$arr[1]}");
-            $in = preg_replace('/<!--BLURB:\[([\w\s\-\&\'\;\,\.\?]+)\]-->\n/', '', $in);
+            $in = preg_replace('/<!--BLURB:\[(.+)\]-->\n/', '', $in);
             $this->page_blurb = $arr[1];
             unset($arr);
         }




More information about the wine-cvs mailing list