diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs index 668f66143..a6fe80687 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/SabnzbdTests/SabnzbdFixture.cs @@ -402,6 +402,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.SabnzbdTests [TestCase("0.8.0", true)] [TestCase("1.0.0", true)] [TestCase("1.0.0RC1", true)] + [TestCase("1.1.x", true)] public void should_test_version(string version, bool expected) { Mocker.GetMock() diff --git a/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs b/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs index 79830fb6b..06054da8c 100644 --- a/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs +++ b/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs @@ -29,7 +29,8 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd _proxy = proxy; } - private static readonly Regex VersionRegex = new Regex(@"(?\d+)\.(?\d+)\.(?\d+)(?.*)", RegexOptions.Compiled); + // patch can be a number (releases) or 'x' (git) + private static readonly Regex VersionRegex = new Regex(@"(?\d+)\.(?\d+)\.(?\d+|x)(?.*)", RegexOptions.Compiled); protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent) {