🐛 fix regex

This commit is contained in:
DrMaxNix 2024-02-19 21:06:42 +01:00
parent 423ac343fb
commit d5172c58a0
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@
if(!is_file($path)) continue;
// check file name format
if(!preg_match("/\d{4}-\d{2}-\d{2}(-[a-z0-9]+)+\.data\.php/", $one_element)) continue;
if(!preg_match("/^\d{4}-\d{2}-\d{2}(-[a-z0-9]+)+\.data\.php$/", $one_element)) continue;
// add to list
$content_file_list[] = $one_element;