Skip to content

Commit

Permalink
変数名のスペルミスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nukora committed Jul 30, 2020
1 parent c71b024 commit 1986fbd
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ private List<ActivityLog> ParseVRChatLog(string filePath)
if (match.Groups[PatternType.ReceivedInvite].Value.Length != 0)
{
var m = RegexPatterns.ReceivedInviteDetail.Match(match.ToString());
var jsonRawDate = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
var numCurlyBracketBegin = jsonRawDate.Count(c => c == '{');
var numCurlyBracketEnd = jsonRawDate.Count(c => c == '}');
var jsonRawData = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
var numCurlyBracketBegin = jsonRawData.Count(c => c == '{');
var numCurlyBracketEnd = jsonRawData.Count(c => c == '}');
if (numCurlyBracketBegin > numCurlyBracketEnd)
{
jsonRawDate += new string('}', numCurlyBracketBegin - numCurlyBracketEnd);
jsonRawData += new string('}', numCurlyBracketBegin - numCurlyBracketEnd);
}
dynamic content = JsonConvert.DeserializeObject(jsonRawDate);
dynamic content = JsonConvert.DeserializeObject(jsonRawData);
var activityLog = new ActivityLog
{
ActivityType = ActivityType.ReceivedInvite,
Expand All @@ -147,8 +147,8 @@ private List<ActivityLog> ParseVRChatLog(string filePath)
if (match.Groups[PatternType.ReceivedRequestInvite].Value.Length != 0)
{
var m = RegexPatterns.ReceivedRequestInviteDetail.Match(match.ToString());
var jsonRawDate = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
dynamic content = JsonConvert.DeserializeObject(jsonRawDate);
var jsonRawData = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
dynamic content = JsonConvert.DeserializeObject(jsonRawData);
var activityLog = new ActivityLog
{
ActivityType = ActivityType.ReceivedRequestInvite,
Expand Down Expand Up @@ -241,8 +241,8 @@ private List<ActivityLog> ParseVRChatLog(string filePath)
if (match.Groups[PatternType.ReceivedFriendRequest].Value.Length != 0)
{
var m = RegexPatterns.ReceivedFriendRequestDetail.Match(match.ToString());
var jsonRawDate = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
dynamic content = JsonConvert.DeserializeObject(jsonRawDate);
var jsonRawData = m.Groups[2].Value.Replace("{{", "{").Replace("}}", "}");
dynamic content = JsonConvert.DeserializeObject(jsonRawData);
var activityLog = new ActivityLog
{
ActivityType = ActivityType.ReceivedFriendRequest,
Expand Down

0 comments on commit 1986fbd

Please sign in to comment.