diff --git a/NzbDrone.Core.Test/DecisionEngineTests/NotRestrictedNzbSpecificationFixture.cs b/NzbDrone.Core.Test/DecisionEngineTests/NotRestrictedNzbSpecificationFixture.cs index ed1de251d..7c7946337 100644 --- a/NzbDrone.Core.Test/DecisionEngineTests/NotRestrictedNzbSpecificationFixture.cs +++ b/NzbDrone.Core.Test/DecisionEngineTests/NotRestrictedNzbSpecificationFixture.cs @@ -32,7 +32,9 @@ namespace NzbDrone.Core.Test.DecisionEngineTests [TestCase("KYR")] [TestCase("EDITED")] + [TestCase("edited")] [TestCase("2HD\nKYR")] + [TestCase("2HD\nkyr")] public void should_be_false_when_nzb_contains_a_restricted_term(string restrictions) { Mocker.GetMock().SetupGet(c => c.NzbRestrictions).Returns(restrictions); diff --git a/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedNzbSpecification.cs b/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedNzbSpecification.cs index ad6bcdaa5..a024a30b8 100644 --- a/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedNzbSpecification.cs +++ b/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedNzbSpecification.cs @@ -43,7 +43,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications foreach (var restriction in restrictions) { - if (subject.Report.Title.Contains(restriction)) + if (subject.Report.Title.ToLowerInvariant().Contains(restriction.ToLowerInvariant())) { _logger.Trace("{0} is restricted: {1}", subject, restriction); return false;