Fixed: Validation of dot prefix in Transmission category.

pull/6/head
Taloth Saldono 10 years ago
parent d8852d840b
commit f5f050f80b

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
RuleFor(c => c.Host).NotEmpty();
RuleFor(c => c.Port).GreaterThan(0);
RuleFor(c => c.TvCategory).Matches("^[-a-z]*$").WithMessage("Allowed characters a-z and -");
RuleFor(c => c.TvCategory).Matches(@"^\.?[-a-z]*$").WithMessage("Allowed characters a-z and -");
}
}

Loading…
Cancel
Save