We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba80a3e commit d469310Copy full SHA for d469310
SourceLink.Create.GitHub/GitHubUrlConverter.cs
@@ -11,9 +11,10 @@ public static string Convert(string origin)
11
origin = origin.Replace(':', '/');
12
origin = origin.Replace("git@", "https://");
13
}
14
- origin = origin.Replace(".git", "");
+ origin = origin.Replace(".git", string.Empty);
15
+ origin = origin.Replace("/", string.Empty);
16
var uri = new System.Uri(origin);
- return "https://raw.githubusercontent.com" + uri.LocalPath + "/{commit}/*";
17
+ return $"https://raw.githubusercontent.com{uri.LocalPath}/{{commit}}/*";
18
19
20
0 commit comments