We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a92996 commit 84eb909Copy full SHA for 84eb909
passKit/Parser/Parser.swift
@@ -70,7 +70,7 @@ class Parser {
70
/// - Parameter line: Line from a password file
71
/// - Returns: Pair of two `String`s of which the first one can be 'nil'
72
static func getKeyValuePair(from line: String) -> (key: String?, value: String) {
73
- let items = line.components(separatedBy: ": ").map { String($0).trimmingCharacters(in: .whitespaces) }
+ let items = line.components(separatedBy: ":").map { String($0).trimmingCharacters(in: .whitespaces) }
74
var key: String?
75
var value = ""
76
if items.count == 1 || (items[0].isEmpty && items[1].isEmpty) {
0 commit comments