Fix a bug when value is empty
This commit is contained in:
parent
05a551781c
commit
ba20d084e4
3 changed files with 16 additions and 10 deletions
|
|
@ -103,7 +103,7 @@ class Password {
|
|||
var key : String?
|
||||
var value = ""
|
||||
if items.count == 1 {
|
||||
value = items[0]
|
||||
key = items[0]
|
||||
} else if items.count == 2 {
|
||||
key = items[0]
|
||||
value = items[1].trimmingCharacters(in: .whitespaces)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue