mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
Check for whitespace
This commit is contained in:
parent
566646ad8b
commit
6016a27736
@ -215,7 +215,7 @@ namespace Emby.Naming.Video
|
|||||||
testFilename = testFilename.Substring(folderName.Length).Trim();
|
testFilename = testFilename.Substring(folderName.Length).Trim();
|
||||||
return string.IsNullOrEmpty(testFilename) ||
|
return string.IsNullOrEmpty(testFilename) ||
|
||||||
testFilename.StartsWith("-") ||
|
testFilename.StartsWith("-") ||
|
||||||
string.IsNullOrEmpty(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty)) ;
|
string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty)) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user