Skip to content

Commit 0ef5281

Browse files
committed
Updated some files
1 parent 6507dc8 commit 0ef5281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BAGen/MTRawEditorView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct MTRawEditorView: View {
6464
.background(.blue)
6565
.cornerRadius(14)
6666
.foregroundColor(.white)
67-
.sheet(isPresented: $isCodeHelpPresented, content: {RawCodeHelpView()})
67+
.sheet(isPresented: $isCodeHelpPresented, content: { RawCodeHelpView() })
6868
}
6969
CodeTextEditor(text: $fullFileContent) {
7070
highlightCode()
@@ -208,7 +208,7 @@ struct MTRawEditorView: View {
208208
if (i == spdByLine.count - 1) && spdByLine[i] == "" { break }
209209
let spdEachPart = spdByLine[i].split(separator: "|").map { return String($0) }
210210
if spdEachPart.count == 4 {
211-
if !allCharacterIds.contains(spdEachPart[0]) && spdEachPart[0] != "Sensei" && spdEachPart[0] != "System" && spdEachPart[0] != "SpecialEvent" {
211+
if !allCharacterIds.contains(spdEachPart[0]) && spdEachPart[0] != "Sensei" && spdEachPart[0] != "System" && spdEachPart[0] != "SpecialEvent" && !spdEachPart[0].contains("%^Split^@") {
212212
codeIssues.append(.init(id: "MT003", desc: "角色 ID 不存在", line: i + 1))
213213
}
214214
if spdEachPart[3] != "false" && spdEachPart[3] != "true" {

0 commit comments

Comments
 (0)