mirror of
https://github.com/Radarr/Radarr
synced 2026-01-18 21:43:18 +01:00
Correct an instance of sonarr in one of the validation error output examples
This commit is contained in:
parent
553b8b1945
commit
c8d0a6a4ea
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ public static IRuleBuilderOptions<T, string> ValidRootUrl<T>(this IRuleBuilder<T
|
|||
return ruleBuilder.SetValidator(new RegularExpressionValidator("^https?://[-_a-z0-9.]+", RegexOptions.IgnoreCase)).WithMessage("must be valid URL that starts with http(s)://");
|
||||
}
|
||||
|
||||
public static IRuleBuilderOptions<T, string> ValidUrlBase<T>(this IRuleBuilder<T, string> ruleBuilder, string example = "/sonarr")
|
||||
public static IRuleBuilderOptions<T, string> ValidUrlBase<T>(this IRuleBuilder<T, string> ruleBuilder, string example = "/radarr")
|
||||
{
|
||||
return ruleBuilder.SetValidator(new RegularExpressionValidator(@"^(?!\/?https?://[-_a-z0-9.]+)", RegexOptions.IgnoreCase)).WithMessage($"Must be a valid URL path (ie: '{example}')");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue