Adjusted path-to-dir regex to prevent an error
This commit is contained in:
parent
27574cad76
commit
c951f7d13e
1 changed files with 1 additions and 1 deletions
|
@ -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]," ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue