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

Fix regex compilation

This commit is contained in:
Aidan Woods 2019-01-27 19:46:38 +00:00
parent 7b72eb6454
commit 4fa89c1a80
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -79,7 +79,7 @@ class CommonMarkTest extends CommonMarkTestWeak
// you can only get here when the test passes
$dir = static::getDataDir(true);
$basename = $id . '-' . \preg_replace('/[^\w-.]/', '_', $section);
$basename = $id . '-' . \preg_replace('/[^\w.-]/', '_', $section);
\file_put_contents($dir . $basename . '.md', $markdown);
\file_put_contents($dir . $basename . '.html', $expectedHtml);
}