From ba6bb692e14f34744ea1bbdd7a4be87192b790db Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Jun 2017 08:14:47 +0200 Subject: [PATCH] minor fix for news2markdown.php --- news2markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }