minor fix for news2markdown.php
This commit is contained in:
parent
fa2b75755b
commit
ba6bb692e1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user