Fix substring depreciated warnings

This commit is contained in:
Yishi Lin 2017-09-23 16:43:14 +08:00
parent 774f05eae0
commit f646762f4b
3 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ class GitSSHKeyArmorSettingTableViewController: UITableViewController, UITextVie
// update full text and check whether we are done
key.append(segment)
if let index1 = key.range(of: "-----END")?.lowerBound,
let _ = key.substring(from: index1).range(of: "KEY-----")?.lowerBound {
let _ = key.suffix(from: index1).range(of: "KEY-----")?.lowerBound {
isDone = true
}