diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-17 15:17:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 15:17:33 +0300 |
commit | 01b60715c2474605798db9ac8af9d83f9b03ef93 (patch) | |
tree | 91a7561c56c97a218bebc6138147512afd6ca8db | |
parent | ef7fb4180213ccc3ba057ae91026002833819add (diff) | |
parent | 32a55ced112493111fad04614055da7d370afe67 (diff) |
Merge pull request #52 from nextcloud/fix/noid/changelog-case-insitive-rc-detection
make changelog generator detect RCs independent of casing
-rw-r--r-- | changelog/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/changelog/index.php b/changelog/index.php index 8adfb2a..e36a461 100644 --- a/changelog/index.php +++ b/changelog/index.php @@ -145,11 +145,11 @@ class GenerateChangelogCommand extends Command } if (substr($base, 0, $subStringNum) === $substring) { - $version = explode('.', substr($base, $subStringNum)); + $version = explode('.', strtolower(substr($base, $subStringNum))); if (count($version) !== 3) { $output->writeln('<error>Detected version does not have exactly 3 numbers separated by a dot.</error>'); } else { - if (strpos($version[2], 'RC') !== false || strpos($version[2], 'beta') !== false) { + if (strpos($version[2], 'rc') !== false || strpos($version[2], 'beta') !== false) { $version[2] = (string)((int)$version[2]); // this basically removes the beta/RC part $milestoneToCheck = join('.', $version); |