enhance: update keyword regex for commit subject

This commit is contained in:
leo 2024-10-16 16:01:52 +08:00
parent aae5f10f66
commit 573db575b6
No known key found for this signature in database

View file

@ -305,10 +305,10 @@ namespace SourceGit.Views
} }
} }
[GeneratedRegex(@"^(\[[\w\s]+\])")] [GeneratedRegex(@"^\[[\w\s]+\]")]
private static partial Regex REG_KEYWORD_FORMAT1(); private static partial Regex REG_KEYWORD_FORMAT1();
[GeneratedRegex(@"^([\w]+([\<\(][\w\s_\-\*,]+[\>\)])?\s?:)\s")] [GeneratedRegex(@"^\w+([\<\(][\w\s_\-\*,]+[\>\)])?\s?:\s")]
private static partial Regex REG_KEYWORD_FORMAT2(); private static partial Regex REG_KEYWORD_FORMAT2();
private List<Models.Hyperlink> _matches = null; private List<Models.Hyperlink> _matches = null;