Fix CommitLinkDetails visibility and improve comments

This commit is contained in:
M-L-Ml 2025-04-21 21:17:11 +02:00
parent 54641446ce
commit 0a1e8d77f1

View file

@ -19,8 +19,9 @@ namespace SourceGit.Models
{ {
public bool IsMatch(string url) => url.StartsWith(HostPrefix, StringComparison.Ordinal); public bool IsMatch(string url) => url.StartsWith(HostPrefix, StringComparison.Ordinal);
} }
public static class CommitLinkDetails // Changed from private to internal to fix CS1527 public static class CommitLinkDetails
{ {
//TODO: use Regex with submatches or better some existing url parsing classes instead
static readonly ProviderInfo[] Providers = new[] static readonly ProviderInfo[] Providers = new[]
{ {
new ProviderInfo( new ProviderInfo(