Skip to content

Commit

Permalink
TODOの追加 #131
Browse files Browse the repository at this point in the history
  • Loading branch information
ca45382 committed Aug 15, 2021
1 parent 43ebe30 commit f33dd54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Script/ClanBattle/BattleProgress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public async Task UpdateDamageData()
uint damageNumber = 0;
byte remainTimeNumber = 0;

// TODO : 冗長なRegexの高速化 #131
if (Regex.IsMatch(m_CommandEventArgs.Name, @"\d+万$"))
{
if (!uint.TryParse(Regex.Match(m_CommandEventArgs.Name, @"\d+").ToString(), out damageNumber)
Expand All @@ -126,6 +127,7 @@ public async Task UpdateDamageData()
progressDataFlag = true;
}

// TODO : 冗長なRegexの高速化 #131
if (Regex.IsMatch(m_CommandEventArgs.Name, @"\d+@\d+"))
{
var damageText = Regex.Match(m_CommandEventArgs.Name, @"\d+@").ToString();
Expand Down
1 change: 1 addition & 0 deletions Script/ClanBattle/BattleReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public void RegisterReportData()
{
var reportData = new ReportData();

// TODO : 冗長なRegexの高速化 #131
if (Regex.IsMatch(m_CommandEventArgs.Name, @"\d\D{1,3}"))
{
var bossNumber = int.Parse(Regex.Match(m_CommandEventArgs.Name, @"\d").Value);
Expand Down

0 comments on commit f33dd54

Please sign in to comment.