Browse Source

Merge pull request #692 from stevehalliwell/ConversationRegexHyphenUnderscore

Conversation Manager Regex now allows - and _ within say params group.
master
Chris Gregan 7 years ago committed by GitHub
parent
commit
0cbe0b8bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Assets/Fungus/Scripts/Utils/ConversationManager.cs

2
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(@"((?<sayParams>[\w ""><.']*):)?(?<text>.*)\r*(\n|$)");
var sayRegex = new Regex(@"((?<sayParams>[\w ""><.'-_]*):)?(?<text>.*)\r*(\n|$)");
MatchCollection sayMatches = sayRegex.Matches(conv);
var items = new List<ConversationItem>(sayMatches.Count);

Loading…
Cancel
Save