diff --git a/news2markdown.php b/news2markdown.php index 77303cd..a3c7e25 100755 --- a/news2markdown.php +++ b/news2markdown.php @@ -24,7 +24,8 @@ foreach ($text as $line) { if ($debug) echo "+ Ignore $line\n"; continue; } - $line = preg_replace('/(#[0-9])+/', 'php\1', $line); + $line = preg_replace('/(#[0-9]+)/', 'php\1', $line); + $line = preg_replace('/(CVE-[0-9]+-[0-9]+)/', '**\1**', $line); if (empty($line)) { echo "\n\n"; } else if (substr($line, 0, 2) == '- ') {