user 6 yıl önce
ebeveyn
işleme
b76cca2566
3 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      lib/contact-item.js
  2. 1 1
      lib/contact-item.js.map
  3. 1 1
      src/contact-item.ts

+ 1 - 1
lib/contact-item.js

@@ -9,7 +9,7 @@ class ContactItem {
         this.groups = props.groups || [];
     }
     matchesAddressOrName(search) {
-        if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0)[0].length > 0) {
+        if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0).length > 0) {
             return true;
         }
         return false;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
lib/contact-item.js.map


+ 1 - 1
src/contact-item.ts

@@ -17,7 +17,7 @@ export class ContactItem {
   }
 
   public matchesAddressOrName(search: string): boolean {
-      if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0)[0].length > 0) {
+      if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0).length > 0) {
           return true;
       }
       return false;