Fix hyphen in indexer url not being accepted

This commit is contained in:
pcjones
2024-02-14 11:14:26 +01:00
parent 7e7ff15f75
commit a6f332fd99

View File

@@ -5,7 +5,7 @@ namespace UmlautAdaptarr.Utilities
{
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();
public static bool IsValidDomain(string domain)
{