1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Fixed: Validation of dot prefix in Transmission category.

This commit is contained in:
Taloth Saldono 2015-03-10 13:38:30 +01:00
parent d8852d840b
commit f5f050f80b

View File

@ -13,7 +13,7 @@ public TransmissionSettingsValidator()
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 -");
}
}