LMs // Update conditions for checking wrecked lines.
This commit is contained in:
parent
92995a38ba
commit
d720f6e411
|
@ -62,8 +62,9 @@ extension vChewing {
|
||||||
|
|
||||||
for (lineID, lineContent) in arrData.enumerated() {
|
for (lineID, lineContent) in arrData.enumerated() {
|
||||||
if !lineContent.hasPrefix("#") {
|
if !lineContent.hasPrefix("#") {
|
||||||
|
let lineContent = lineContent.replacingOccurrences(of: "\t", with: " ")
|
||||||
if lineContent.components(separatedBy: " ").count < 2 {
|
if lineContent.components(separatedBy: " ").count < 2 {
|
||||||
if arrData.last != "" {
|
if lineContent != "", lineContent != " " {
|
||||||
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -77,7 +77,7 @@ extension vChewing {
|
||||||
if !lineContent.hasPrefix("#") {
|
if !lineContent.hasPrefix("#") {
|
||||||
let lineContent = lineContent.replacingOccurrences(of: "\t", with: " ")
|
let lineContent = lineContent.replacingOccurrences(of: "\t", with: " ")
|
||||||
if lineContent.components(separatedBy: " ").count < 2 {
|
if lineContent.components(separatedBy: " ").count < 2 {
|
||||||
if arrData.last != "" {
|
if lineContent != "", lineContent != " " {
|
||||||
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -66,8 +66,9 @@ extension vChewing {
|
||||||
|
|
||||||
for (lineID, lineContent) in arrData.enumerated() {
|
for (lineID, lineContent) in arrData.enumerated() {
|
||||||
if !lineContent.hasPrefix("#") {
|
if !lineContent.hasPrefix("#") {
|
||||||
|
let lineContent = lineContent.replacingOccurrences(of: "\t", with: " ")
|
||||||
if lineContent.components(separatedBy: " ").count < 2 {
|
if lineContent.components(separatedBy: " ").count < 2 {
|
||||||
if arrData.last != "" {
|
if lineContent != "", lineContent != " " {
|
||||||
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -63,8 +63,9 @@ extension vChewing {
|
||||||
|
|
||||||
for (lineID, lineContent) in arrData.enumerated() {
|
for (lineID, lineContent) in arrData.enumerated() {
|
||||||
if !lineContent.hasPrefix("#") {
|
if !lineContent.hasPrefix("#") {
|
||||||
|
let lineContent = lineContent.replacingOccurrences(of: "\t", with: " ")
|
||||||
if lineContent.components(separatedBy: " ").count < 2 {
|
if lineContent.components(separatedBy: " ").count < 2 {
|
||||||
if arrData.last != "" {
|
if lineContent != "", lineContent != " " {
|
||||||
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
IME.prtDebugIntel("Line #\(lineID + 1) Wrecked: \(lineContent)")
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue