mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-01 02:05:29 +00:00
fix regex rule
This commit is contained in:
parent
6e9f4cd885
commit
c618714cd2
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ function getLastSnapTime(array $files): int
|
||||||
}
|
}
|
||||||
|
|
||||||
$time[] = preg_replace(
|
$time[] = preg_replace(
|
||||||
'/^([\d]+)\.tar\.gz&/',
|
'/^([\d]+)\.tar\.gz$/',
|
||||||
'$1',
|
'$1',
|
||||||
basename(
|
basename(
|
||||||
$file
|
$file
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ if ($config->snap->storage->local->enabled)
|
||||||
);
|
);
|
||||||
|
|
||||||
$time = preg_replace(
|
$time = preg_replace(
|
||||||
'/^([\d]+)\.tar\.gz&/',
|
'/^([\d]+)\.tar\.gz$/',
|
||||||
'$1',
|
'$1',
|
||||||
$basename
|
$basename
|
||||||
);
|
);
|
||||||
|
|
@ -169,7 +169,7 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp)
|
||||||
);
|
);
|
||||||
|
|
||||||
$time = preg_replace(
|
$time = preg_replace(
|
||||||
'/^([\d]+)\.tar\.gz&/',
|
'/^([\d]+)\.tar\.gz$/',
|
||||||
'$1',
|
'$1',
|
||||||
$basename
|
$basename
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue