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:
parent
7b72eb6454
commit
4fa89c1a80
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user