From bbe3a61933335f68c3de58aad1ace24aa254e8d3 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 3 Jul 2023 11:48:13 +0800 Subject: [PATCH] Update Configure.Ssg.cs --- MyApp/Configure.Ssg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyApp/Configure.Ssg.cs b/MyApp/Configure.Ssg.cs index faf5ab404d..0688dabf94 100644 --- a/MyApp/Configure.Ssg.cs +++ b/MyApp/Configure.Ssg.cs @@ -69,7 +69,7 @@ public void Configure(IWebHostBuilder builder) => builder var pos = txt.IndexOf("url = ", StringComparison.Ordinal); if (pos >= 0) { - var url = txt[(pos + "url = ".Length)..].LastLeftPart(".git"); + var url = txt[(pos + "url = ".Length)..].LastLeftPart(".git").LastLeftPart('\n').Trim(); var gitBaseUrl = url.CombineWith($"blob/main/{srcDir.Name}"); return gitBaseUrl; }