fixing regex

This commit is contained in:
Matthew Batchelder 2012-04-19 14:18:24 -04:00
parent 7fb842e284
commit 4ee9f3aa30

View File

@ -305,11 +305,11 @@ if( $subnav_links = $this->get_page_links('Bootstrap:Subnav') ) {
if(preg_match('/^\*\s*([^\*]*)\[\[:?(.+)\]\]/', $line, $match)) {
$sub = false;
$link = true;
}elseif(preg_match('/^\*\s*([^\*]*)\[([^ ]+) (.+)\]/', $line, $match)) {
}elseif(preg_match('/^\*\s*([^\*\[]*)\[([^\[ ]+) (.+)\]/', $line, $match)) {
$sub = false;
$link = true;
$external = true;
}elseif(preg_match('/^\*\*\s*([^\*]*)\[([^ ]+) (.+)\]/', $line, $match)) {
}elseif(preg_match('/^\*\*\s*([^\*\[]*)\[([^\[ ]+) (.+)\]/', $line, $match)) {
$sub = true;
$link = true;
$external = true;