From dd4216d4329b868351aa19e815bc37113ce37c90 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 10 Jun 2019 12:13:02 +0200 Subject: [PATCH] Fixed: Regression preventing empty qbittorrent category fixes #3158 --- .../Download/Clients/QBittorrent/QBittorrentSettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs index 6756b42b5..fc61ee32c 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs @@ -12,8 +12,8 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent RuleFor(c => c.Host).ValidHost(); RuleFor(c => c.Port).InclusiveBetween(1, 65535); - RuleFor(c => c.TvCategory).Matches("^[^/\\\\](((?!//)[^\\\\])*[^/\\\\])?$").WithMessage("Can not contain '\\', '//', or start/end with '/'"); - RuleFor(c => c.TvImportedCategory).Matches("^[^/\\\\](((?!//)[^\\\\])*[^/\\\\])?$").WithMessage("Can not contain '\\', '//', or start/end with '/'"); + RuleFor(c => c.TvCategory).Matches(@"^([^\\\/](\/?[^\\\/])*)?$").WithMessage("Can not contain '\', '//', or start/end with '/'"); + RuleFor(c => c.TvImportedCategory).Matches(@"^([^\\\/](\/?[^\\\/])*)?$").WithMessage("Can not contain '\', '//', or start/end with '/'"); } }