Skip to content

Commit d469310

Browse files
committed
fixes ctaggart#232
1 parent ba80a3e commit d469310

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SourceLink.Create.GitHub/GitHubUrlConverter.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ public static string Convert(string origin)
1111
origin = origin.Replace(':', '/');
1212
origin = origin.Replace("git@", "https://");
1313
}
14-
origin = origin.Replace(".git", "");
14+
origin = origin.Replace(".git", string.Empty);
15+
origin = origin.Replace("/", string.Empty);
1516
var uri = new System.Uri(origin);
16-
return "https://raw.githubusercontent.com" + uri.LocalPath + "/{commit}/*";
17+
return $"https://raw.githubusercontent.com{uri.LocalPath}/{{commit}}/*";
1718
}
1819
}
1920
}

0 commit comments

Comments
 (0)