From 98689e547fc9d70ff5f01dd61a19fe47961f433a Mon Sep 17 00:00:00 2001 From: desktop-maesty/steve Date: Sun, 24 Jun 2018 08:26:27 +1000 Subject: [PATCH] Conversation Manager Regex now allows - and _ within say params group. -Allows conversation to use portraits like calling-neutral --- Assets/Fungus/Scripts/Utils/ConversationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Utils/ConversationManager.cs b/Assets/Fungus/Scripts/Utils/ConversationManager.cs index 7dcf8efd..431b7bad 100644 --- a/Assets/Fungus/Scripts/Utils/ConversationManager.cs +++ b/Assets/Fungus/Scripts/Utils/ConversationManager.cs @@ -116,7 +116,7 @@ namespace Fungus { //find SimpleScript say strings with portrait options //You can test regex matches here: http://regexstorm.net/tester - var sayRegex = new Regex(@"((?[\w ""><.']*):)?(?.*)\r*(\n|$)"); + var sayRegex = new Regex(@"((?[\w ""><.'-_]*):)?(?.*)\r*(\n|$)"); MatchCollection sayMatches = sayRegex.Matches(conv); var items = new List(sayMatches.Count);