Fix test/CommonMarkTest.php example regex

This commit is contained in:
Daniel Rudolf 2016-09-05 14:37:34 +02:00
parent e1bcc1c472
commit 3a46a31e09
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
$spec = strstr($spec, '<!-- END TESTS -->', true);
$matches = array();
preg_match_all('/^(?s)`{32} example\n(.*?)\n\.\n(.*?)\n`{32}$|^#{1,6} *(.*?)$/m', $spec, $matches, PREG_SET_ORDER);
preg_match_all('/^`{32} example\n((?s).*?)\n\.\n((?s).*?)\n`{32}$|^#{1,6} *(.*?)$/m', $spec, $matches, PREG_SET_ORDER);
$data = array();
$currentSection = '';