Code and regex improvements

This commit is contained in:
Jose
2019-10-31 00:45:21 -04:00
parent 700f519cd3
commit baf99b62e9
4 changed files with 22 additions and 27 deletions

View File

@@ -49,7 +49,7 @@ function get_rel_list() {
global $rootfolder;
$result = [];
if (is_dir("{$rootfolder}/releases")):
$entries = preg_grep('/^([^.])/', scandir("{$rootfolder}/releases"));
$entries = preg_grep('/^[0-9]+\.[0-9]+\-RELEASE/', scandir("{$rootfolder}/releases"));
foreach($entries as $entry):
$a = preg_split('/\t/',$entry);
$r = [];