Browse Source

fix regex rule

main
yggverse 9 months ago
parent
commit
c618714cd2
  1. 2
      src/cli/document/crawl.php
  2. 4
      src/webui/explore.php

2
src/cli/document/crawl.php

@ -19,7 +19,7 @@ function getLastSnapTime(array $files): int @@ -19,7 +19,7 @@ function getLastSnapTime(array $files): int
}
$time[] = preg_replace(
'/^([\d]+)\.tar\.gz&/',
'/^([\d]+)\.tar\.gz$/',
'$1',
basename(
$file

4
src/webui/explore.php

@ -115,7 +115,7 @@ if ($config->snap->storage->local->enabled) @@ -115,7 +115,7 @@ if ($config->snap->storage->local->enabled)
);
$time = preg_replace(
'/^([\d]+)\.tar\.gz&/',
'/^([\d]+)\.tar\.gz$/',
'$1',
$basename
);
@ -169,7 +169,7 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp) @@ -169,7 +169,7 @@ foreach ($config->snap->storage->remote->ftp as $i => $ftp)
);
$time = preg_replace(
'/^([\d]+)\.tar\.gz&/',
'/^([\d]+)\.tar\.gz$/',
'$1',
$basename
);

Loading…
Cancel
Save