Skip to content

Commit 2a63b0c

Browse files
committed
chore: 另一个优化容错
1 parent 4d769ed commit 2a63b0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MaiChartManager/Controllers/Charts/ImportChartController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ private static string Add1Bar(string maidata)
4444
[GeneratedRegex(@",[csbx\.\{\}],")]
4545
private static partial Regex SimaiError4();
4646

47+
[GeneratedRegex(@"(\d)qx(\d)")]
48+
private static partial Regex SimaiError5();
49+
4750
private static string FixChartSimaiSharp(string chart)
4851
{
4952
chart = chart.Replace("\n", "").Replace("\r", "").Replace("{{", "{").Replace("}}", "}");
5053
chart = SimaiError1().Replace(chart, "$1,{");
5154
chart = SimaiError3().Replace(chart, "$1,(");
5255
chart = SimaiError2().Replace(chart, "[$1:$2]");
5356
chart = SimaiError4().Replace(chart, ",,");
57+
chart = SimaiError5().Replace(chart, "$1xq$2");
5458
return chart;
5559
}
5660

0 commit comments

Comments
 (0)