diff --git a/news2markdown.php b/news2markdown.php index 66e8508..325e934 100755 --- a/news2markdown.php +++ b/news2markdown.php @@ -13,7 +13,7 @@ $debug = (isset($_SERVER['argv'][2]) && $_SERVER['argv'][2]==-'d'); $text = explode("\n", $text); $in=false; foreach ($text as $line) { - if (preg_match('/(^[0-9][0-9] ... 20[0-9][0-9])[,]* PHP (.*)$/', $line, $reg)) { + if (preg_match('/(^[0-9]+ ... 20[0-9][0-9])[,]* PHP (.*)$/', $line, $reg)) { if ($in) { break; }