Skip to content

Commit

Permalink
Update Configure.Ssg.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jul 3, 2023
1 parent e98fa2f commit bbe3a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Configure.Ssg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bbe3a61

Please sign in to comment.