From d10e5f8ba99c41cd64fa13c4622a0d9198e38835 Mon Sep 17 00:00:00 2001 From: Will Howell Date: Tue, 9 May 2017 13:47:58 -0400 Subject: [PATCH] docs(autocomplete): Fix regex filter search (#4425) --- src/lib/autocomplete/autocomplete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/autocomplete/autocomplete.md b/src/lib/autocomplete/autocomplete.md index f5d139ae100d..4ebe6fc295f0 100644 --- a/src/lib/autocomplete/autocomplete.md +++ b/src/lib/autocomplete/autocomplete.md @@ -138,7 +138,7 @@ class MyComp { } filter(name: string): User[] { - return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option)); + return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option.name)); } displayFn(user: User): string {