From: <var...@us...> - 2008-08-29 13:52:00
|
Revision: 6222 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6222&view=rev Author: vargenau Date: 2008-08-29 13:52:09 +0000 (Fri, 29 Aug 2008) Log Message: ----------- extractSection understands Wikicreole Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2008-08-29 13:30:14 UTC (rev 6221) +++ trunk/lib/stdlib.php 2008-08-29 13:52:09 UTC (rev 6222) @@ -2074,7 +2074,7 @@ function extractSection ($section, $content, $page, $quiet = false, $sectionhead = false) { $qsection = preg_replace('/\s+/', '\s+', preg_quote($section, '/')); - if (preg_match("/ ^(!{1,})\\s*$qsection" // section header + if (preg_match("/ ^(!{1,}|={2,})\\s*$qsection" // 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. |