Skip to content

Commit

Permalink
Fix tests for changed HTML output in DokuWiki
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Sep 20, 2012
1 parent 1c242a7 commit b26ef07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _test/nested_include.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function _validateContent($mainHTML, $secondHTML, $thirdHTML) {
}

private function _matchHeader($level, $text, $html) {
return preg_match('/<h'.$level.'[^>]*><a[^>]*>'.$text.'/', $html) > 0;
return preg_match('/<h'.$level.'[^>]*>(<a[^>]*>)?'.$text.'/', $html) > 0;
}

private function _createPages() {
Expand Down

0 comments on commit b26ef07

Please sign in to comment.