refactor: commit hash detection in message

This commit is contained in:
leo 2024-12-17 14:39:18 +08:00
parent 6768a2c1fe
commit 23326d179a
No known key found for this signature in database

View file

@ -15,7 +15,7 @@ namespace SourceGit.Views
{ {
public partial class CommitMessagePresenter : SelectableTextBlock public partial class CommitMessagePresenter : SelectableTextBlock
{ {
[GeneratedRegex(@"\b([0-9a-fA-F]{8,40})\b")] [GeneratedRegex(@"\b([0-9a-fA-F]{10,40})\b")]
private static partial Regex REG_SHA_FORMAT(); private static partial Regex REG_SHA_FORMAT();
public static readonly StyledProperty<string> MessageProperty = public static readonly StyledProperty<string> MessageProperty =