瀏覽代碼

set password search case insensitive

fix https://github.com/lesspass/lesspass/issues/131
pull/342/head
Guillaume Vincent 7 年之前
父節點
當前提交
28b2f5e4f7
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/views/Passwords.vue

+ 3
- 1
src/views/Passwords.vue 查看文件

@@ -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…
取消
儲存