Remove anchor where querying URL

This commit is contained in:
nicolas.dorier 2019-09-02 18:05:40 +09:00
parent 0047a5388d
commit fefc45854e
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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<Task> checkLinks = new List<Task>();
foreach (var file in viewFiles)