Load caps correctly

This commit is contained in:
christophhagen 2020-05-26 15:43:17 +02:00
parent 3ce2f4b226
commit 3dba02c2cf

View File

@ -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")
}