Merge pull request #6117 from LuoYun-Team/ModComp
pref(ModComp):提高代码可维护性
This commit is contained in:
@@ -78,8 +78,8 @@
|
||||
If SplitedLine.Count >= 2 Then
|
||||
Entry.ChineseName = SplitedLine(1)
|
||||
If Entry.ChineseName.Contains("*") Then '处理 *
|
||||
Entry.ChineseName = Entry.ChineseName.Replace("*", " (" &
|
||||
String.Join(" ", If(Entry.CurseForgeSlug, Entry.ModrinthSlug).Split("-").Select(Function(w) w.Substring(0, 1).ToUpper & w.Substring(1, w.Length - 1))) & ")")
|
||||
Entry.ChineseName = Entry.ChineseName.Replace("*",
|
||||
$"({If(Entry.CurseForgeSlug, Entry.ModrinthSlug).Replace("-"," ").Capitalize})")
|
||||
End If
|
||||
End If
|
||||
_CompDatabase.Add(Entry)
|
||||
|
||||
Reference in New Issue
Block a user