Browse Source

set password search case insensitive

fix https://github.com/lesspass/lesspass/issues/131
pull/342/head
Guillaume Vincent 7 years ago
parent
commit
28b2f5e4f7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/Passwords.vue

+ 3
- 1
src/views/Passwords.vue View File

@@ -54,7 +54,9 @@
...mapGetters(['passwords', 'email']),
filteredPasswords(){
return this.passwords.filter(password => {
return password.site.indexOf(this.searchQuery) > -1 || password.login.indexOf(this.searchQuery) > -1
var loginMatch = password.login.match(new RegExp(this.searchQuery, 'i'));
var siteMatch = password.site.match(new RegExp(this.searchQuery, 'i'));
return loginMatch || siteMatch;
})
}
},


Loading…
Cancel
Save