diff --git a/Parser.php b/Parser.php index 5c4d632..c4752c8 100644 --- a/Parser.php +++ b/Parser.php @@ -608,7 +608,7 @@ private function parseBlock($text, &$lines) break; // table - case preg_match("/^((?:(?:(?:[ :]*\-[ :]*)+(?:\||\+))|(?:(?:\||\+)(?:[ :]*\-[ :]*)+)|(?:(?:[ :]*\-[ :]*)+(?:\||\+)(?:[ :]*\-[ :]*)+))+)$/", $line, $matches): + case preg_match("/^[\|\+]?((?::?\-+:?[\|\+])+(?:\s*:?\-+:?\s*)?)$/", $line, $matches): if ($this->isBlock('table')) { $block[3][0][] = $block[3][2]; $block[3][2] ++;