mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 22:17:15 -04:00
Fixed: Allow spaces in Trakt username and listname
This commit is contained in:
parent
2d40914482
commit
5d4ec1272d
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ namespace NzbDrone.Core.NetImport.Trakt
|
|||
|
||||
// List name required for UserCustomList
|
||||
RuleFor(c => c.Listname)
|
||||
.Matches(@"^[A-Za-z0-9\-_]+$", RegexOptions.IgnoreCase)
|
||||
.Matches(@"^[A-Za-z0-9\-_ ]+$", RegexOptions.IgnoreCase)
|
||||
.When(c => c.ListType == (int)TraktListType.UserCustomList)
|
||||
.WithMessage("List name is required when using Custom Trakt Lists");
|
||||
|
||||
// Username required for UserWatchedList/UserWatchList
|
||||
RuleFor(c => c.Username)
|
||||
.Matches(@"^[A-Za-z0-9\-_]+$", RegexOptions.IgnoreCase)
|
||||
.Matches(@"^[A-Za-z0-9\-_ ]+$", RegexOptions.IgnoreCase)
|
||||
.When(c => c.ListType == (int)TraktListType.UserWatchedList || c.ListType == (int)TraktListType.UserWatchList)
|
||||
.WithMessage("Username is required when using User Trakt Lists");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue