minor fix for news2markdown.php

This commit is contained in:
Remi Collet 2017-06-07 08:14:47 +02:00
parent fa2b75755b
commit ba6bb692e1

View File

@ -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;
}