diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index 5471cc4..042b479 100755 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -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") }