mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Fix releases list.
This commit is contained in:
parent
663223ba26
commit
46449ec8c6
@ -442,7 +442,7 @@ env('releases_list', function () {
|
||||
$item = basename($item); // strip path returned from find
|
||||
|
||||
// release dir can look like this: 20160216152237 or 20160216152237.1.2.3.4 ...
|
||||
$name_match = '[0-9_:]{14}'; // 20160216152237
|
||||
$name_match = '[0-9_\.]{14}'; // 20160216152237
|
||||
$extension_match = '\.[0-9]+'; // .1 or .15 etc
|
||||
if (!preg_match("/^$name_match($extension_match)*$/", $item)) {
|
||||
unset($list[$key]); // dir name does not match pattern, throw it out
|
||||
|
Loading…
x
Reference in New Issue
Block a user