public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: fix helpers (coma in title)
@ 2026-11-27  7:27 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27  7:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : 3daa29d742190acba6ce53e311150e1745e388f5
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2016-09-16T08:16:25+02:00
Stats  : +3/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/3daa29d742190acba6ce53e311150e1745e388f5?branch=private-php86

Log:
fix helpers (coma in title)

---
diff --git a/news2markdown.php b/news2markdown.php
index f14b5fa..a4cbee9 100755
--- a/news2markdown.php
+++ b/news2markdown.php
@@ -8,11 +8,12 @@ $text = file_get_contents($_SERVER['argv'][1]);
 if (!$text) {
 	die("Can't read {$_SERVER['argv'][1]}\n");
 }
+$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][0-9] ... 20[0-9][0-9])[,]* PHP (.*)$/', $line, $reg)) {
 		if ($in) {
 			break;
 		}
@@ -20,6 +21,7 @@ foreach ($text as $line) {
 		$in = true;
 		continue;
 	} else if (!$in) {
+		if ($debug) echo "+ Ignore $line\n";
 		continue;
 	}
 	$line = preg_replace('/(#[0-9])+/', 'php\1', $line);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  7:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  7:27 [rpms/php] private-php86: fix helpers (coma in title) Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox