mirror of
https://github.com/getgrav/grav.git
synced 2026-08-07 17:01:03 +02:00
@@ -246,7 +246,9 @@ class SelfupgradeCommand extends GpmCommand
|
||||
$io->newLine();
|
||||
foreach ($changelog as $version => $log) {
|
||||
$title = $version . ' [' . $log['date'] . ']';
|
||||
$content = preg_replace_callback('/\d\.\s\[\]\(#(.*)\)/', static fn($match) => "\n" . ucfirst((string) $match[1]) . ':', (string) $log['content']);
|
||||
$content = preg_replace_callback('/\d\.\s\[\]\(#(.*)\)/', static function ($match) {
|
||||
return "\n" . ucfirst((string) $match[1]) . ':';
|
||||
}, (string) $log['content']);
|
||||
|
||||
$io->writeln($title);
|
||||
$io->writeln(str_repeat('-', strlen($title)));
|
||||
|
||||
Reference in New Issue
Block a user