1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

View File

@ -43,7 +43,7 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
$spec = strstr($spec, '<!-- END TESTS -->', true); $spec = strstr($spec, '<!-- END TESTS -->', true);
$matches = array(); $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(); $data = array();
$currentSection = ''; $currentSection = '';