Skip to content

Commit b51b623

Browse files
committed
Robofile: support CHANGELOG-4.x filename format in changelog generator
1 parent d803658 commit b51b623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public function changelog() {
413413
protected function processChangelog()
414414
{
415415
$sortByVersionDesc = function (\SplFileInfo $a, \SplFileInfo $b) {
416-
$pattern = '/^CHANGELOG-(\d+\.\d+).md$/';
416+
$pattern = '/^CHANGELOG-(\d+\.(?:x|\d+)).md$/';
417417
if (preg_match($pattern, $a->getBasename(), $matches1) && preg_match($pattern, $b->getBasename(), $matches2)) {
418418
return version_compare($matches1[1], $matches2[1]) * -1;
419419
}

0 commit comments

Comments
 (0)