mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
ZoneCodeGenerator: Fix basematcher adding tag to result even when not matched successfully
This commit is contained in:
@ -53,9 +53,12 @@
|
||||
|
||||
var result = new TokenMatchingResult(success, consumedTokens);
|
||||
|
||||
if (name != null && success)
|
||||
result.AddNamedMatch(name, output);
|
||||
result.AppendTag(Tag);
|
||||
if (success)
|
||||
{
|
||||
if (name != null)
|
||||
result.AddNamedMatch(name, output);
|
||||
result.AppendTag(Tag);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user