mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 15:55:53 +02:00
Fixed changelog differ to take into account betas/rc versions (fixes #496)
This commit is contained in:
@@ -55,7 +55,7 @@ class Grav extends AbstractPackageCollection
|
||||
|
||||
$diffLog = [];
|
||||
foreach ($this->data['changelog'] as $version => $changelog) {
|
||||
preg_match("/[\d\.]+/", $version, $cleanVersion);
|
||||
preg_match("/[\w-\.]+/", $version, $cleanVersion);
|
||||
|
||||
if (!$cleanVersion || version_compare($diff, $cleanVersion[0], ">=")) { continue; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user