Fixed: Extra new line in release restrictions causing all releases to be rejected

This commit is contained in:
Mark McDowall
2014-01-15 12:39:32 -08:00
parent 2dd7fb9fdf
commit 885872ff3a
3 changed files with 17 additions and 8 deletions
@@ -41,6 +41,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
foreach (var restriction in restrictions)
{
if (String.IsNullOrWhiteSpace(restriction)) continue;
if (subject.Release.Title.ToLowerInvariant().Contains(restriction.ToLowerInvariant()))
{
_logger.Trace("{0} is restricted: {1}", subject, restriction);