Explorar el Código

set password search case insensitive

fix https://github.com/lesspass/lesspass/issues/131
pull/342/head
Guillaume Vincent hace 7 años
padre
commit
28b2f5e4f7
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/views/Passwords.vue

+ 3
- 1
src/views/Passwords.vue Ver fichero

@@ -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;
})
}
},


Cargando…
Cancelar
Guardar