Skip to content

Commit 10f63d1

Browse files
authored
Merge pull request #47 from Starrah/fix-maidata-trim
fix: maidata部分字段开头如果有空白字符时,会造成一些解析和处理过程(如add1Bar函数)出现错误。
2 parents 80ed4ba + 21023eb commit 10f63d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

MaiChartManager/Services/MaidataImportService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ public ImportChartResult ImportMaidata(
274274
foreach (var (key, value) in kvps)
275275
{
276276
maiData[key] = value;
277+
if (key.StartsWith("inote") || key.StartsWith("lv") || key.StartsWith("first") ||
278+
key.StartsWith("wholebpm")) maiData[key] = maiData[key].Trim();
277279
}
278280

279281
var allCharts = new Dictionary<int, AllChartsEntry>();

0 commit comments

Comments
 (0)