Skip to content

Commit c7a4c24

Browse files
amaestas13GitHub Enterprise
authored and
GitHub Enterprise
committed
Merge pull request #7 from unity/JsonParserUpdate
Matches for stereo now gets proper first group
2 parents 960e78e + ca49535 commit c7a4c24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

UnityPerformanceBenchmarkReporter/TestResultJsonParser.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,17 @@ private static string GetStereoPath(string stereoModeString, string miscDataStri
197197
var match = stereoModeRegex.Match(miscDataString);
198198
if(match.Success)
199199
{
200+
201+
if(match.Groups.Count <= 1)
202+
return stereoModeString;
203+
200204
if(stereoModeString.ToLower() == match.Value.ToLower())
201205
{
202206
return stereoModeString;
203207
}
204208
else
205209
{
206-
return match.Value;
210+
return match.Groups[1].Value;
207211
}
208212
}
209213
else

0 commit comments

Comments
 (0)