Fix hyphen in indexer url not being accepted
This commit is contained in:
@@ -5,7 +5,7 @@ namespace UmlautAdaptarr.Utilities
|
|||||||
{
|
{
|
||||||
public partial class UrlUtilities
|
public partial class UrlUtilities
|
||||||
{
|
{
|
||||||
[GeneratedRegex(@"^(?!http:\/\/)([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$")]
|
[GeneratedRegex(@"^(?!http:\/\/)([a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+.*)$")]
|
||||||
private static partial Regex UrlMatchingRegex();
|
private static partial Regex UrlMatchingRegex();
|
||||||
public static bool IsValidDomain(string domain)
|
public static bool IsValidDomain(string domain)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user