From fefc45854e66e50937282cc851337001138779f4 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 2 Sep 2019 18:05:40 +0900 Subject: [PATCH] Remove anchor where querying URL --- BTCPayServer.Tests/UnitTest1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 6b39c7299..302be468c 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -80,7 +80,7 @@ namespace BTCPayServer.Tests var views = Path.Combine(LanguageService.TryGetSolutionDirectoryInfo().FullName, "BTCPayServer", "Views"); var viewFiles = Directory.EnumerateFiles(views, "*.cshtml", SearchOption.AllDirectories).ToArray(); Assert.NotEmpty(viewFiles); - Regex regex = new Regex("href=\"(http.*?)\""); + Regex regex = new Regex("href=\"(http.*?)[\"#]"); var httpClient = new HttpClient(); List checkLinks = new List(); foreach (var file in viewFiles)