Load caps correctly
This commit is contained in:
parent
3ce2f4b226
commit
3dba02c2cf
@ -25,7 +25,7 @@ private var caps = [String]()
|
||||
|
||||
func loadCapNames() throws {
|
||||
let s = try String(contentsOf: nameFile)
|
||||
caps = s.components(separatedBy: "\n")
|
||||
caps = s.trimmingCharacters(in: .whitespacesAndNewlines).components(separatedBy: "\n")
|
||||
log("\(caps.count) caps loaded")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user