Adjusted path-to-dir regex to prevent an error
This commit is contained in:
		
							parent
							
								
									27574cad76
								
							
						
					
					
						commit
						c951f7d13e
					
				| @ -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]," "); | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user