Skip to content

Commit

Permalink
Merge pull request #23 from AliceNovel/Lemon73-Computing/issue16
Browse files Browse the repository at this point in the history
fixed: #16
  • Loading branch information
Lemon73-Computing authored Apr 29, 2024
2 parents 5f9f9ca + 2675b12 commit 326847e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions AnovSyntax/Anov.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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, @"> (.*)");
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 326847e

Please sign in to comment.