File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ public string Translate(string content)
47
47
chineseIndexs . Add ( i ) ;
48
48
}
49
49
StringBuilder resultBuilder = new StringBuilder ( ) ;
50
- resultBuilder . Append ( string . Concat ( resultList . Where ( ( r , i ) => chineseIndexs . Contains ( i ) ) . Select ( s => s . First ( ) ) ) ) ;
50
+
51
+ foreach ( var chineseIndex in chineseIndexs )
52
+ {
53
+ resultBuilder . Append ( resultList [ chineseIndex ] . First ( ) ) ;
54
+ }
51
55
resultBuilder . Append ( ' ' ) ;
52
56
53
57
int currentChineseIndex = 0 ;
@@ -90,10 +94,5 @@ public string Translate(string content)
90
94
return content ;
91
95
}
92
96
}
93
-
94
- private string GetFirstPinyinChar ( string content )
95
- {
96
- return string . Concat ( content . Split ( ' ' ) . Select ( x => x . First ( ) ) ) ;
97
- }
98
97
}
99
98
}
You can’t perform that action at this time.
0 commit comments