mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-05 20:33:03 +02:00
Fix regex compilation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user