Allow version segments of more than one digit
diff --git a/downloads/custom-scripts.php b/downloads/custom-scripts.php
index a1fe990..e90d69d 100644
--- a/downloads/custom-scripts.php
+++ b/downloads/custom-scripts.php
@@ -73,9 +73,9 @@
function getBuildLabel($zips) {
// the label is the version number plus its appended alias (if any)
foreach ($zips as $zip) {
- preg_match("/(\d\.\d\.\d)((M|RC)\d)?/", $zip, $matches);
+ preg_match("/(\d+\.\d+\.\d+)((M|RC)\d+)?/", $zip, $matches);
if (sizeof($matches) > 0) {
- return preg_replace("/(\d\.\d\.\d)((M|RC)\d)?/", "$1 $2", $matches[0]);
+ return preg_replace("/(\d+\.\d+\.\d+)((M|RC)\d+)?/", "$1 $2", $matches[0]);
}
}
return "";