user 6 년 전
부모
커밋
0373185967
4개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      lib/contact-item.d.ts
  2. 3 0
      lib/contact-item.js
  3. 1 1
      lib/contact-item.js.map
  4. 4 0
      src/contact-item.ts

+ 1 - 0
lib/contact-item.d.ts

@@ -9,4 +9,5 @@ export declare class ContactItem {
     matchesAddressOrName(search: string): boolean;
     matchesGroup(group: string): boolean;
     getFirstEmail(): string | undefined;
+    getMatchingAddresses(): string[];
 }

+ 3 - 0
lib/contact-item.js

@@ -27,6 +27,9 @@ class ContactItem {
         }
         return prefixed.substring(6);
     }
+    getMatchingAddresses() {
+        return this.addrs.filter(x => x.indexOf(x) >= 0);
+    }
 }
 exports.ContactItem = ContactItem;
 //# sourceMappingURL=contact-item.js.map

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
lib/contact-item.js.map


+ 4 - 0
src/contact-item.ts

@@ -37,4 +37,8 @@ export class ContactItem {
       }
       return prefixed.substring(6);
   }
+
+  public getMatchingAddresses(): string[] {
+      return this.addrs.filter(x => x.indexOf(x) >= 0);
+    }
 }