Fixed changelog differ to take into account betas/rc versions (fixes #496)

This commit is contained in:
Djamil Legato
2015-12-02 23:44:18 -08:00
parent e695b1942c
commit dc8c0b6522

View File

@@ -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; }