Check for whitespace

This commit is contained in:
Claus Vium 2019-02-19 22:30:21 +01:00
parent 566646ad8b
commit 6016a27736
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ namespace Emby.Naming.Video
testFilename = testFilename.Substring(folderName.Length).Trim();
return string.IsNullOrEmpty(testFilename) ||
testFilename.StartsWith("-") ||
string.IsNullOrEmpty(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty)) ;
string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty)) ;
}
return false;