Adjusted path-to-dir regex to prevent an error

This commit is contained in:
Matthew Barbour 2019-06-19 19:35:45 -05:00 committed by matthew
parent 27574cad76
commit c951f7d13e

View file

@ -282,7 +282,7 @@ function path_to_tags(string $path): string
{ {
$matches = []; $matches = [];
$tags = []; $tags = [];
if(preg_match("/\d+ - (.*)\.([a-zA-Z0-9]+)/", basename($path), $matches)) { if(preg_match("/\d+ - (.+)\.([a-zA-Z0-9]+)/", basename($path), $matches)) {
$tags = explode($matches[1]," "); $tags = explode($matches[1]," ");
} }