Skip to content

Commit 93b1994

Browse files
committed
Version double-check was broken for RC releases apparently.
1 parent ebe12f3 commit 93b1994

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: util/check_version.php

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
$stabilityRelease = (string) $sxe->stability->release;
3131
$stabilityApi = (string) $sxe->stability->api;
3232

33+
34+
$rc_position = stripos($versionApi, "RC");
35+
36+
if ($rc_position !== false) {
37+
$versionApi = substr($versionApi, 0, $rc_position);
38+
}
39+
3340
$versionReleaseNumber = preg_replace('/[^\d\.]/', '', $versionApi);
3441

3542
$parts = explode('.', $versionReleaseNumber);

0 commit comments

Comments
 (0)