We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1ee149 commit cb7af6eCopy full SHA for cb7af6e
ProtoExport/MessageHelper.cs
@@ -5,7 +5,7 @@ namespace GameFrameX.ProtoExport;
5
public static partial class MessageHelper
6
{
7
// 正则表达式匹配enums
8
- private const string EnumPattern = @"enum\s+(\w+)\s+\{([^}]*)\}";
+ private const string EnumPattern = @"enum\s+(\w+)\s*\{\s*([^}]*)\s*\}";
9
10
// 正则表达式匹配messages
11
private const string MessagePattern = @"message\s+(\w+)\s*\{\s*([^}]+)\s*\}";
0 commit comments