Fix matching algorithm in AutoFill

This commit is contained in:
Mingshen Sun 2021-01-03 22:01:24 -08:00
parent 9e8994f576
commit 571281b655
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
3 changed files with 6 additions and 22 deletions

View file

@ -43,8 +43,8 @@ class PasswordsViewController: UIViewController {
tableView.dataSource = dataSource
}
func showPasswordsWithSuggstion(_ keywords: [String]) {
dataSource.showTableEntriesWithSuggestion(matching: keywords)
func showPasswordsWithSuggstion(matching text: String) {
dataSource.showTableEntriesWithSuggestion(matching: text)
tableView.reloadData()
}