Skip to content

Commit a5a25fc

Browse files
committed
Use the correct group when extracting character names
1 parent 4306959 commit a5a25fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YarnSpinner/YarnSpinner.Markup/LineParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ internal MarkupParseResult ParseString(string input, string localeCode, bool squ
15091509
// replace it with markup that indicates the character name.
15101510
input = implicitCharacterRegex.Replace(
15111511
input,
1512-
(match) => $"[character name=\"{match.Groups[0]}\"]{match.Value}[/character]"
1512+
(match) => $"[character name=\"{match.Groups[1]}\"]{match.Value}[/character]"
15131513
);
15141514
}
15151515

0 commit comments

Comments
 (0)