From: <var...@us...> - 2009-11-20 17:09:36
|
Revision: 7271 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7271&view=rev Author: vargenau Date: 2009-11-20 17:09:23 +0000 (Fri, 20 Nov 2009) Log Message: ----------- Make extractSection work with Mediawiki syntax (trailing ='s) Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-11-20 16:58:11 UTC (rev 7270) +++ trunk/lib/stdlib.php 2009-11-20 17:09:23 UTC (rev 7271) @@ -2167,7 +2167,7 @@ function extractSection ($section, $content, $page, $quiet = false, $sectionhead = false) { $qsection = preg_replace('/\s+/', '\s+', preg_quote($section, '/')); - if (preg_match("/ ^(!{1,}|={2,})\\s*$qsection" // section header + if (preg_match("/ ^(!{1,}|={2,})\\s*$qsection\s*=*" // section header . " \\s*$\\n?" // possible blank lines . " ( (?: ^.*\\n? )*? )" // some lines . " (?= ^\\1 | \\Z)/xm", // sec header (same or higher level) (or EOF) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |