From 2675b12141919ad3189663cbc000f21fecc6e23b Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Mon, 29 Apr 2024 10:10:54 +0900 Subject: [PATCH] fixed: #16 --- AnovSyntax/Anov.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AnovSyntax/Anov.cs b/AnovSyntax/Anov.cs index f07a0e8..17436ce 100644 --- a/AnovSyntax/Anov.cs +++ b/AnovSyntax/Anov.cs @@ -13,6 +13,11 @@ public static string Read(string str) Match match; string _return = ""; + // Read "[conversation-content]" + match = Regex.Match(str, @"\[(.*?)\]"); + if (match.Success) + return " \"" + match.Groups[1].Value.Trim() + "\""; + // Unsupported // Read "> place" match = Regex.Match(str, @"> (.*)"); @@ -48,11 +53,6 @@ public static string Read(string str) if (match.Success) _return += " (" + match.Groups[1].Value.Trim() + ")"; - // Read "[conversation-content]" - match = Regex.Match(str, @"\[(.*?)\]"); - if (match.Success) - _return += " \"" + match.Groups[1].Value.Trim() + "\""; - return _return; } }