From bb45a5af8ea68b2e3981e0a67fa9b7ce4356d0ca Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 21 Oct 2024 17:07:56 +0800 Subject: [PATCH] enhance: use `\S` instead of `\w` to supports emoji character --- src/Views/Histories.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index f8174c0c..137fd298 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -308,7 +308,7 @@ namespace SourceGit.Views [GeneratedRegex(@"^\[[\w\s]+\]")] private static partial Regex REG_KEYWORD_FORMAT1(); - [GeneratedRegex(@"^\w+([\<\(][\w\s_\-\*,]+[\>\)])?\!?\s?:\s")] + [GeneratedRegex(@"^\S+([\<\(][\w\s_\-\*,]+[\>\)])?\!?\s?:\s")] private static partial Regex REG_KEYWORD_FORMAT2(); private List _matches = null;