Skip to content

Commit cb7af6e

Browse files
committed
[增加]1. 增加枚举的首个大括号的换行和不换行匹配兼容
1 parent e1ee149 commit cb7af6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProtoExport/MessageHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace GameFrameX.ProtoExport;
55
public static partial class MessageHelper
66
{
77
// 正则表达式匹配enums
8-
private const string EnumPattern = @"enum\s+(\w+)\s+\{([^}]*)\}";
8+
private const string EnumPattern = @"enum\s+(\w+)\s*\{\s*([^}]*)\s*\}";
99

1010
// 正则表达式匹配messages
1111
private const string MessagePattern = @"message\s+(\w+)\s*\{\s*([^}]+)\s*\}";

0 commit comments

Comments
 (0)