[web-php] master: Fix news2html truncation
| From: | Christoph M. Becker via GitHub | Date: | Thu, 08 Dec 2022 18:56:50 +0000 |
| Subject: | [web-php] master: Fix news2html truncation | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30678@lists.php.net to get a copy of this message | ||
Author: Christoph M. Becker (cmb69)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-12-08T19:45:28+01:00
Commit: https://github.com/php/web-php/commit/bb530230dda877183ef21470df4ef575ef6568f7
Raw diff: https://github.com/php/web-php/commit/bb530230dda877183ef21470df4ef575ef6568f7.diff
Fix news2html truncation
If there are NEWS entries referring to a certain PHP version, these are
interpreted as belonging to that PHP version. Since the lines actually
delimiting PHP versions are supposed to have comma after the date, we
enforce that now.
Closes GH-730.
Changed paths:
M bin/news2html
Diff:
diff --git a/bin/news2html b/bin/news2html
index 97d20a75fa..ef6c01c636 100755
--- a/bin/news2html
+++ b/bin/news2html
@@ -30,7 +30,7 @@ while(($ln = fgets($fp)) !== false) {
}
if (!$inside) { continue; }
- if (preg_match('/,? PHP \d+.\d+.\d+/', $ln)) {
+ if (preg_match('/, PHP \d+.\d+.\d+/', $ln)) {
// next entry - we're done
break;
}